8.12.0 release

This commit is contained in:
mfnalex 2020-06-25 02:05:23 +02:00
parent d478be13ea
commit 4da07676bc
6 changed files with 26 additions and 14 deletions

View File

@ -2,7 +2,7 @@
## 8.12.0
- Changed name of command /chestsort to /sort. You can still use /chestsort though.
- Fixed weird config updater problem on systems that don't properly support UTF-8 (like Windows)
- Improved help messages
- Improved help messages and added /sort help and /invsort help commands
- Huge code cleanup
- Improved performance by caching Reflection checks in the Minepacks hook

View File

@ -16,7 +16,7 @@ You can use maven to add ChestSort as a dependency to your Spigot-/Bukkit-Plugin
<dependency>
<groupId>de.jeff_media</groupId>
<artifactId>ChestSort</artifactId>
<version>8.10.5</version> <!-- Check www.chestsort.de for latest version -->
<version>8.12.0</version> <!-- Check www.chestsort.de for latest version -->
<scope>provided</scope>
</dependency>
</dependencies>

View File

@ -36,6 +36,10 @@ public class ChestSortChestSortCommand implements CommandExecutor {
return true;
}
if(args.length>0 && args[0].equalsIgnoreCase("help")) {
return false;
}
if (!(sender instanceof Player)) {
if(args.length!=0) {

View File

@ -21,6 +21,10 @@ public class ChestSortInvSortCommand implements CommandExecutor {
if (!command.getName().equalsIgnoreCase("invsort")) {
return false;
}
if(args.length>0 && args[0].equalsIgnoreCase("help")) {
return false;
}
if (!(sender instanceof Player)) {
sender.sendMessage(plugin.messages.MSG_PLAYERSONLY);

View File

@ -10,8 +10,8 @@ import org.jetbrains.annotations.NotNull;
public class ChestSortTabCompleter implements TabCompleter {
static final String[] chestsortOptions = { "toggle","on","off","hotkeys" };
static final String[] invsortOptions = { "toggle","on","off","all", "hotbar", "inv" };
static final String[] chestsortOptions = { "toggle","on","off","hotkeys","help" };
static final String[] invsortOptions = { "toggle","on","off","all", "hotbar", "inv","help" };
private List<String> getMatchingOptions(String entered, String[] options) {
List<String> list = new ArrayList<>();

View File

@ -11,22 +11,26 @@ loadbefore: [InvUnload]
softdepend: [CrackShot,InventoryPages,Minepacks]
commands:
sort:
description: Toggle automatic chest sorting.
description: Toggle automatic chest sorting or change your hotkey settings
usage: |
/<command> -- Toggles automatic chest sorting
/<command> on|off -- Enables/disabled automatic chest sorting
/<command> hotkeys -- Opens hotkeys GUI to enable/disable hotkeys
/<command> -- Toggle automatic chest sorting
/<command> on -- Enable automatic chest sorting
/<command> off -- Disable automatic chest sorting
/<command> hotkeys -- Change your hotkey settings
/<command> reload -- Reloads config
/<command> help -- Shows help about this command
aliases: chestsort
permission: chestsort.use
invsort:
description: Toggle automatic inventory sorting or sorts the player's inventory. When no option is specified, only the regular inventory (excluding the hotbar) is sorted.
description: Toggle automatic inventory sorting or sorts the player's inventory.
usage: |
/<command> toggle -- Toggles automatic inventory sorting
/<command> on|off -- Enables/disables automatic inventory sorting
/<command> inv -- Sorts your inventory
/<command> hotbar -- Sorts your hotbar
/<command> all -- Sorts your inventory and hotbar
/<command> toggle -- Toggle automatic inventory sorting
/<command> on -- Enable automatic inventory sorting
/<command> off -- Disable automatic inventory sorting
/<command> inv -- Sort your inventory
/<command> hotbar -- Sort your hotbar
/<command> all -- Sort your inventory and hotbar
/<command> help -- Shows help about this command
aliases: [isort,inventorysort]
permission: chestsort.use.inventory
permissions: