mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-12-03 08:03:26 +01:00
8.16.1-SNAPSHOT (should be fine)
This commit is contained in:
parent
b25f03f2ae
commit
f0d7c9ed1e
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user