mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-02-19 05:41:21 +01:00
8.12.0 release
This commit is contained in:
parent
d478be13ea
commit
4da07676bc
@ -2,7 +2,7 @@
|
|||||||
## 8.12.0
|
## 8.12.0
|
||||||
- Changed name of command /chestsort to /sort. You can still use /chestsort though.
|
- 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)
|
- 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
|
- Huge code cleanup
|
||||||
- Improved performance by caching Reflection checks in the Minepacks hook
|
- Improved performance by caching Reflection checks in the Minepacks hook
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ You can use maven to add ChestSort as a dependency to your Spigot-/Bukkit-Plugin
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>de.jeff_media</groupId>
|
<groupId>de.jeff_media</groupId>
|
||||||
<artifactId>ChestSort</artifactId>
|
<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>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -36,6 +36,10 @@ public class ChestSortChestSortCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(args.length>0 && args[0].equalsIgnoreCase("help")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(sender instanceof Player)) {
|
if (!(sender instanceof Player)) {
|
||||||
|
|
||||||
if(args.length!=0) {
|
if(args.length!=0) {
|
||||||
|
@ -21,6 +21,10 @@ public class ChestSortInvSortCommand implements CommandExecutor {
|
|||||||
if (!command.getName().equalsIgnoreCase("invsort")) {
|
if (!command.getName().equalsIgnoreCase("invsort")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(args.length>0 && args[0].equalsIgnoreCase("help")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(sender instanceof Player)) {
|
if (!(sender instanceof Player)) {
|
||||||
sender.sendMessage(plugin.messages.MSG_PLAYERSONLY);
|
sender.sendMessage(plugin.messages.MSG_PLAYERSONLY);
|
||||||
|
@ -10,8 +10,8 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
|
|
||||||
public class ChestSortTabCompleter implements TabCompleter {
|
public class ChestSortTabCompleter implements TabCompleter {
|
||||||
|
|
||||||
static final String[] chestsortOptions = { "toggle","on","off","hotkeys" };
|
static final String[] chestsortOptions = { "toggle","on","off","hotkeys","help" };
|
||||||
static final String[] invsortOptions = { "toggle","on","off","all", "hotbar", "inv" };
|
static final String[] invsortOptions = { "toggle","on","off","all", "hotbar", "inv","help" };
|
||||||
|
|
||||||
private List<String> getMatchingOptions(String entered, String[] options) {
|
private List<String> getMatchingOptions(String entered, String[] options) {
|
||||||
List<String> list = new ArrayList<>();
|
List<String> list = new ArrayList<>();
|
||||||
|
@ -11,22 +11,26 @@ loadbefore: [InvUnload]
|
|||||||
softdepend: [CrackShot,InventoryPages,Minepacks]
|
softdepend: [CrackShot,InventoryPages,Minepacks]
|
||||||
commands:
|
commands:
|
||||||
sort:
|
sort:
|
||||||
description: Toggle automatic chest sorting.
|
description: Toggle automatic chest sorting or change your hotkey settings
|
||||||
usage: |
|
usage: |
|
||||||
/<command> -- Toggles automatic chest sorting
|
/<command> -- Toggle automatic chest sorting
|
||||||
/<command> on|off -- Enables/disabled automatic chest sorting
|
/<command> on -- Enable automatic chest sorting
|
||||||
/<command> hotkeys -- Opens hotkeys GUI to enable/disable hotkeys
|
/<command> off -- Disable automatic chest sorting
|
||||||
|
/<command> hotkeys -- Change your hotkey settings
|
||||||
/<command> reload -- Reloads config
|
/<command> reload -- Reloads config
|
||||||
|
/<command> help -- Shows help about this command
|
||||||
aliases: chestsort
|
aliases: chestsort
|
||||||
permission: chestsort.use
|
permission: chestsort.use
|
||||||
invsort:
|
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: |
|
usage: |
|
||||||
/<command> toggle -- Toggles automatic inventory sorting
|
/<command> toggle -- Toggle automatic inventory sorting
|
||||||
/<command> on|off -- Enables/disables automatic inventory sorting
|
/<command> on -- Enable automatic inventory sorting
|
||||||
/<command> inv -- Sorts your inventory
|
/<command> off -- Disable automatic inventory sorting
|
||||||
/<command> hotbar -- Sorts your hotbar
|
/<command> inv -- Sort your inventory
|
||||||
/<command> all -- Sorts your inventory and hotbar
|
/<command> hotbar -- Sort your hotbar
|
||||||
|
/<command> all -- Sort your inventory and hotbar
|
||||||
|
/<command> help -- Shows help about this command
|
||||||
aliases: [isort,inventorysort]
|
aliases: [isort,inventorysort]
|
||||||
permission: chestsort.use.inventory
|
permission: chestsort.use.inventory
|
||||||
permissions:
|
permissions:
|
||||||
|
Loading…
Reference in New Issue
Block a user