mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-11-27 04:55:31 +01:00
fix for spigot's stupid /reload command
This commit is contained in:
parent
db08d5e612
commit
0868adcb7a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user