diff --git a/pom.xml b/pom.xml index 4b12d49..1683e4d 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.sat7 DynamicShop - 3.7.0 + 3.7.1 jar DynamicShop diff --git a/src/main/java/me/sat7/dynamicshop/DynamicShop.java b/src/main/java/me/sat7/dynamicshop/DynamicShop.java index 21318f9..d0074f3 100644 --- a/src/main/java/me/sat7/dynamicshop/DynamicShop.java +++ b/src/main/java/me/sat7/dynamicshop/DynamicShop.java @@ -398,6 +398,8 @@ public List onTabComplete(CommandSender sender, Command cmd, String comm @Override public void onDisable() { + DynamicShop.ccUser.save(); + Bukkit.getScheduler().cancelTasks(this); console.sendMessage(Constants.DYNAMIC_SHOP_PREFIX + " Disabled"); } diff --git a/src/main/java/me/sat7/dynamicshop/commands/CommandHelp.java b/src/main/java/me/sat7/dynamicshop/commands/CommandHelp.java index 36f13ec..d297ebf 100644 --- a/src/main/java/me/sat7/dynamicshop/commands/CommandHelp.java +++ b/src/main/java/me/sat7/dynamicshop/commands/CommandHelp.java @@ -42,13 +42,13 @@ public void RunCMD(String[] args, CommandSender sender) player.sendMessage(DynamicShop.dsPrefix(player) + "켜짐"); DynamicShop.userTempData.put(uuid, ""); DynamicShop.ccUser.get().set(player.getUniqueId() + ".cmdHelp", true); - DynamicShop.ccUser.save(); + //DynamicShop.ccUser.save(); } else if (args[1].equalsIgnoreCase("off")) { player.sendMessage(DynamicShop.dsPrefix(player) + "꺼짐"); DynamicShop.userTempData.put(uuid, ""); DynamicShop.ccUser.get().set(player.getUniqueId() + ".cmdHelp", false); - DynamicShop.ccUser.save(); + //DynamicShop.ccUser.save(); } else { player.sendMessage(DynamicShop.dsPrefix(player) + t(player, "ERR.WRONG_USAGE")); diff --git a/src/main/java/me/sat7/dynamicshop/events/JoinQuit.java b/src/main/java/me/sat7/dynamicshop/events/JoinQuit.java index 5bc159f..7f7eaba 100644 --- a/src/main/java/me/sat7/dynamicshop/events/JoinQuit.java +++ b/src/main/java/me/sat7/dynamicshop/events/JoinQuit.java @@ -26,7 +26,7 @@ public void onPlayerJoin(PlayerJoinEvent e) DynamicShop.userInteractItem.put(player.getUniqueId(), ""); DynamicShop.ccUser.get().set(player.getUniqueId() + ".lastJoin", System.currentTimeMillis()); DynamicShop.ccUser.get().addDefault(player.getUniqueId() + ".cmdHelp", true); - DynamicShop.ccUser.save(); + //DynamicShop.ccUser.save(); boolean isSnapshot = DynamicShop.yourVersion.contains("snapshot"); if (DynamicShop.updateAvailable || isSnapshot)