8.16.1-SNAPSHOT (should be fine)

This commit is contained in:
mfnalex 2020-07-16 21:57:57 +02:00
parent b25f03f2ae
commit f0d7c9ed1e
4 changed files with 21 additions and 2 deletions

View File

@ -1,5 +1,8 @@
# Changelog
## 8.16.1
- Allow middle-click hotkey in creative mode when clicked slot is empty
## 8.16.0
- Added generic hook for 3rd party plugin GUIs
- Added config option to disable additional hotkeys (left-click and right-click outside of inventory)

View File

@ -36,6 +36,19 @@ public class ChestSortChestSortCommand implements CommandExecutor {
return true;
}
// Debug command
if(args.length>0 && args[0].equalsIgnoreCase("debug")) {
if(!sender.hasPermission("chestsort.debug")) {
sender.sendMessage(plugin.getCommand("chestsort").getPermissionMessage());
}
sender.sendMessage(ChatColor.RED+"ChestSort Debug mode enabled - I hope you know what you are doing!");
plugin.debug=true;
ChestSortDebugger debugger = new ChestSortDebugger(plugin);
plugin.getServer().getPluginManager().registerEvents(debugger, plugin);
plugin.debug("Debug mode activated through command by "+sender.getName());
return true;
}
if(args.length>0 && args[0].equalsIgnoreCase("help")) {
return false;
}

View File

@ -376,7 +376,7 @@ public class ChestSortListener implements Listener {
if (event.getWhoClicked().getGameMode() != GameMode.CREATIVE) {
sort = true;
} else {
if (event.getCurrentItem() == null || event.getCurrentItem().getType() == Material.AIR) {
if (event.getCurrentItem() != null || event.getCurrentItem().getType() != Material.AIR) {
sort = false;
}
}

View File

@ -161,7 +161,10 @@ public class ChestSortPlugin extends JavaPlugin implements de.jeff_media.ChestSo
// Using old config version, but it's no problem. We just print a warning and
// use the default values later on
} else*/ if (getConfig().getInt("config-version", 0) != currentConfigVersion) {
} else*/
if (getConfig().getInt("config-version", 0) != currentConfigVersion) {
showOldConfigWarning();
ChestSortConfigUpdater configUpdater = new ChestSortConfigUpdater(this);
configUpdater.updateConfig();