don't display message if command was already used

This commit is contained in:
mfnalex 2018-08-15 21:25:26 +02:00
parent 1438a18493
commit a8e9ca4354

View File

@ -25,6 +25,7 @@ public class JeffChestSortCommandExecutor implements CommandExecutor {
Player p = (Player) sender;
JeffChestSortPlayerSetting setting = plugin.PerPlayerSettings.get(p.getUniqueId().toString());
setting.sortingEnabled = !setting.sortingEnabled;
setting.hasSeenMessage=true;
if (setting.sortingEnabled) {
p.sendMessage(plugin.messages.MSG_ACTIVATED);