fix for spigot's stupid /reload command

This commit is contained in:
mfnalex 2018-08-24 19:43:18 +02:00
parent db08d5e612
commit 0868adcb7a

View File

@ -36,7 +36,10 @@ public class JeffChestSortCommandExecutor implements CommandExecutor {
}
Player p = (Player) sender;
// fix for Spigot's stupid /reload function
plugin.listener.registerPlayerIfNeeded(p);
JeffChestSortPlayerSetting setting = plugin.PerPlayerSettings.get(p.getUniqueId().toString());
setting.sortingEnabled = !setting.sortingEnabled;
setting.hasSeenMessage=true;