mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-12-05 00:53:52 +01:00
12.0.4
This commit is contained in:
parent
9b852b5e7a
commit
437a57e37d
@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 12.0.4
|
||||||
|
- Added config option "allow-gui" (defaults to true)
|
||||||
|
|
||||||
## 12.0.3
|
## 12.0.3
|
||||||
- Fixed some commands (e.g. /sort on|off|toggle) accidently opening the GUI
|
- Fixed some commands (e.g. /sort on|off|toggle) accidently opening the GUI
|
||||||
|
|
||||||
|
2
pom.xml
2
pom.xml
@ -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.3</version>
|
<version>12.0.4</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -105,6 +105,10 @@ public class ChestSortCommand implements CommandExecutor {
|
|||||||
|
|
||||||
if(!p.hasPermission("chestsort.automatic")) args = new String[]{"hotkeys"};
|
if(!p.hasPermission("chestsort.automatic")) args = new String[]{"hotkeys"};
|
||||||
|
|
||||||
|
if(args.length==0 && plugin.getConfig().getBoolean("allow-gui",true) == false) {
|
||||||
|
args = new String[] {"toggle"};
|
||||||
|
}
|
||||||
|
|
||||||
if(args.length > 0 && (args[0].equalsIgnoreCase("hotkeys") || args[0].equalsIgnoreCase("hotkey"))) {
|
if(args.length > 0 && (args[0].equalsIgnoreCase("hotkeys") || args[0].equalsIgnoreCase("hotkey"))) {
|
||||||
new NewUI(p).showGUI();
|
new NewUI(p).showGUI();
|
||||||
return true;
|
return true;
|
||||||
|
@ -89,6 +89,9 @@ inv-sorting-enabled-by-default: false
|
|||||||
# this to false.
|
# this to false.
|
||||||
allow-commands: true
|
allow-commands: true
|
||||||
|
|
||||||
|
# You can prevent players from using the GUI. When set to "false", /sort behaves like /sort toggle
|
||||||
|
allow-gui: true
|
||||||
|
|
||||||
# when set to true, players with sorting DISABLED will be
|
# when set to true, players with sorting DISABLED will be
|
||||||
# shown a message on how to enable automatic chest sorting
|
# shown a message on how to enable automatic chest sorting
|
||||||
# when they use a chest for the first time.
|
# when they use a chest for the first time.
|
||||||
|
Loading…
Reference in New Issue
Block a user