From 2df5959fac04823f399157d22a9acfcc9d4fcf53 Mon Sep 17 00:00:00 2001 From: mfnalex <1122571+mfnalex@users.noreply.github.com> Date: Sun, 13 Sep 2020 16:06:07 +0200 Subject: [PATCH] 8.17.5 release --- CHANGELOG.md | 3 +++ pom.xml | 2 +- .../de/jeff_media/ChestSort/ChestSortInvSortCommand.java | 6 +++++- src/main/resources/plugin.yml | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3294588..9816971 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 8.17.5 +- Fixed "/invsort hotbar" and "/invsort all" only sorting the normal inventory when "allow-automatic-inventory-sorting" is set to false + ## 8.17.4 - Improved GUI detection - Added Polish translation (thanks to PLKaratusPL) diff --git a/pom.xml b/pom.xml index c9b704d..998eef0 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ ChestSort https://www.chestsort.de Automatically sorts your chests! - 8.17.4 + 8.17.5 jar diff --git a/src/main/java/de/jeff_media/ChestSort/ChestSortInvSortCommand.java b/src/main/java/de/jeff_media/ChestSort/ChestSortInvSortCommand.java index eea2128..5512a46 100644 --- a/src/main/java/de/jeff_media/ChestSort/ChestSortInvSortCommand.java +++ b/src/main/java/de/jeff_media/ChestSort/ChestSortInvSortCommand.java @@ -55,7 +55,11 @@ public class ChestSortInvSortCommand implements CommandExecutor { ChestSortPlayerSetting setting = plugin.perPlayerSettings.get(p.getUniqueId().toString()); - if(!plugin.getConfig().getBoolean("allow-automatic-inventory-sorting")) args=new String[]{"inv"}; + if(!plugin.getConfig().getBoolean("allow-automatic-inventory-sorting")) { + if(args.length==0 || args[0].equalsIgnoreCase("on") || args[0].equalsIgnoreCase("off") || args[0].equalsIgnoreCase("toggle") ) { + args = new String[]{"inv"}; + } + } if(args.length>0) { if(args[0].equalsIgnoreCase("all")) { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 76eafcd..ebecd9e 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ main: de.jeff_media.ChestSort.ChestSortPlugin name: ChestSort -version: 8.17.4 +version: 8.17.5 api-version: "1.13" description: Allows automatic chest sorting author: mfnalex