This commit is contained in:
mfnalex 2021-10-28 20:28:10 +02:00
parent 61d5ce77f3
commit 9b852b5e7a
3 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,8 @@
# Changelog # Changelog
## 12.0.3
- Fixed some commands (e.g. /sort on|off|toggle) accidently opening the GUI
## 12.0.2 ## 12.0.2
- Replaced PlayerInteractEvent with ChestSortLeftClickHotkeyEvent (fixes problems with other plugins opening GUIs on PlayerInteractEvent) - Replaced PlayerInteractEvent with ChestSortLeftClickHotkeyEvent (fixes problems with other plugins opening GUIs on PlayerInteractEvent)

View File

@ -9,7 +9,7 @@
<name>ChestSort</name> <name>ChestSort</name>
<url>https://www.chestsort.de</url> <url>https://www.chestsort.de</url>
<description>Allows automatic chest sorting!</description> <description>Allows automatic chest sorting!</description>
<version>12.0.2</version> <version>12.0.3</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>

View File

@ -142,6 +142,13 @@ public class ChestSortCommand implements CommandExecutor {
} else if (args[0].equalsIgnoreCase("off")) { } else if (args[0].equalsIgnoreCase("off")) {
setting.disableChestSorting(); setting.disableChestSorting();
} }
setting.hasSeenMessage = true;
if(setting.sortingEnabled) {
p.sendMessage(Messages.MSG_ACTIVATED);
} else {
p.sendMessage(Messages.MSG_DEACTIVATED);
}
return true;
} }
setting.hasSeenMessage = true; setting.hasSeenMessage = true;