From 3a9df9cddc695791ab1522be38d56ea406c6c1f2 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 7 May 2020 09:31:04 +0200 Subject: [PATCH] refactor: move PlayerCache to Utils --- varo/src/main/java/de/cliffbreak/varo/Varo.java | 1 + .../varo/listeners/PlayerClientOptionsChangeListener.java | 2 +- .../de/cliffbreak/varo/listeners/PlayerDeathListener.java | 2 -- .../main/java/de/cliffbreak/varo/{ => uitls}/PlayerCache.java | 4 +++- 4 files changed, 5 insertions(+), 4 deletions(-) rename varo/src/main/java/de/cliffbreak/varo/{ => uitls}/PlayerCache.java (97%) diff --git a/varo/src/main/java/de/cliffbreak/varo/Varo.java b/varo/src/main/java/de/cliffbreak/varo/Varo.java index b3ad3f1..42d835d 100644 --- a/varo/src/main/java/de/cliffbreak/varo/Varo.java +++ b/varo/src/main/java/de/cliffbreak/varo/Varo.java @@ -25,6 +25,7 @@ import de.cliffbreak.varo.listeners.PlayerJoinQuitListener; import de.cliffbreak.varo.listeners.PlayerPreLoginListener; import de.cliffbreak.varo.managers.NPCManager; import de.cliffbreak.varo.uitls.BanUtils; +import de.cliffbreak.varo.uitls.PlayerCache; public class Varo extends JavaPlugin { diff --git a/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerClientOptionsChangeListener.java b/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerClientOptionsChangeListener.java index d2610c1..af490b7 100644 --- a/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerClientOptionsChangeListener.java +++ b/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerClientOptionsChangeListener.java @@ -6,7 +6,7 @@ import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import de.cliffbreak.varo.Varo; -import de.cliffbreak.varo.PlayerCache.PlayerCacheType; +import de.cliffbreak.varo.uitls.PlayerCache.PlayerCacheType; public class PlayerClientOptionsChangeListener implements Listener { diff --git a/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerDeathListener.java b/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerDeathListener.java index 1d5362d..34b7b94 100644 --- a/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerDeathListener.java +++ b/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerDeathListener.java @@ -1,7 +1,5 @@ package de.cliffbreak.varo.listeners; -import java.util.ArrayList; - import org.bukkit.Bukkit; import org.bukkit.GameMode; import org.bukkit.event.EventHandler; diff --git a/varo/src/main/java/de/cliffbreak/varo/PlayerCache.java b/varo/src/main/java/de/cliffbreak/varo/uitls/PlayerCache.java similarity index 97% rename from varo/src/main/java/de/cliffbreak/varo/PlayerCache.java rename to varo/src/main/java/de/cliffbreak/varo/uitls/PlayerCache.java index bb3fbd3..983a3e6 100644 --- a/varo/src/main/java/de/cliffbreak/varo/PlayerCache.java +++ b/varo/src/main/java/de/cliffbreak/varo/uitls/PlayerCache.java @@ -1,4 +1,4 @@ -package de.cliffbreak.varo; +package de.cliffbreak.varo.uitls; import java.io.File; import java.io.IOException; @@ -8,6 +8,8 @@ import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.inventory.MainHand; import org.bukkit.scheduler.BukkitRunnable; +import de.cliffbreak.varo.Varo; + public class PlayerCache { private Varo plugin;