Fix Presets duplicating on b reload

This commit is contained in:
jedk1 2016-02-09 14:44:12 +00:00
parent db6d7a9e8b
commit 1e683032b1

View file

@ -1244,6 +1244,7 @@ public class GeneralMethods {
stopPlugin(); stopPlugin();
} }
for (Player player : Bukkit.getOnlinePlayers()) { for (Player player : Bukkit.getOnlinePlayers()) {
Preset.unloadPreset(player);
GeneralMethods.createBendingPlayer(player.getUniqueId(), player.getName()); GeneralMethods.createBendingPlayer(player.getUniqueId(), player.getName());
} }
plugin.updater.checkUpdate(); plugin.updater.checkUpdate();