Merge pull request #53 from JEFF-Media-GbR/auto-inv-sorting

Auto inv sorting
This commit is contained in:
JEFF 2020-05-18 00:36:25 +02:00 committed by GitHub
commit c40c94b03c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 114 additions and 18 deletions

View File

@ -1,6 +1,7 @@
# Changelog
## 7.6-pre1
## 7.6
- Added automatic inventory sorting (disabled by default). Can be activated by using /invsort on
- Added options "toggle", "on", "off" to /chestsort. When no option is specified, "toggle" is assumed
- Improved the messages sent by the update checker, including links for download, donation and changelog
- Updated bStats to version 1.6

View File

@ -6,7 +6,7 @@
<groupId>de.jeffclan</groupId>
<artifactId>JeffChestSort</artifactId>
<version>7.6-pre1</version>
<version>7.6</version>
<packaging>jar</packaging>
<name>JeffChestSort</name>
@ -86,12 +86,12 @@
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<!-- <dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.15-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependency>-->
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>

View File

@ -26,6 +26,11 @@ public class JeffChestSortCommandExecutor implements CommandExecutor {
plugin.debug=true;
sender.sendMessage("ChestSort debug mode enabled.");
return true;
} else if(args[0].equalsIgnoreCase("reload")) {
// TODO: EXPERIMENTAL
plugin.onDisable();
plugin.onEnable();
}
}
@ -96,6 +101,8 @@ public class JeffChestSortCommandExecutor implements CommandExecutor {
int start = 9;
int end = 35;
JeffChestSortPlayerSetting setting = plugin.PerPlayerSettings.get(p.getUniqueId().toString());
if(args.length>0) {
if(args[0].equalsIgnoreCase("all")) {
start=0;
@ -106,8 +113,25 @@ public class JeffChestSortCommandExecutor implements CommandExecutor {
} else if(args[0].equalsIgnoreCase("inv")) {
start=9;
end=35;
} else {
p.sendMessage(String.format(plugin.messages.MSG_INVALIDOPTIONS,"\""+args[0]+"\"","\"inv\", \"hotbar\", \"all\""));
} else if(args[0].equalsIgnoreCase("on")) {
setting.invSortingEnabled = true;
p.sendMessage(plugin.messages.MSG_INVACTIVATED);
return true;
} else if(args[0].equalsIgnoreCase("off")) {
setting.invSortingEnabled = false;
p.sendMessage(plugin.messages.MSG_INVDEACTIVATED);
return true;
} else if(args[0].equalsIgnoreCase("toggle")) {
setting.invSortingEnabled = !setting.invSortingEnabled;
if(setting.invSortingEnabled) {
p.sendMessage(plugin.messages.MSG_INVACTIVATED);
} else {
p.sendMessage(plugin.messages.MSG_INVDEACTIVATED);
}
return true;
}
else {
p.sendMessage(String.format(plugin.messages.MSG_INVALIDOPTIONS,"\""+args[0]+"\"","\"on\", \"off\", \"toggle\", \"inv\", \"hotbar\", \"all\""));
return true;
}
}

View File

@ -68,18 +68,21 @@ public class JeffChestSortListener implements Listener {
p.getUniqueId().toString() + ".yml");
YamlConfiguration playerConfig = YamlConfiguration.loadConfiguration(playerFile);
playerConfig.addDefault("invSortingEnabled", plugin.getConfig().getBoolean("inv-sorting-enabled-by-default"));
playerConfig.addDefault("middleClick", plugin.getConfig().getBoolean("hotkeys.middle-click"));
playerConfig.addDefault("shiftClick", plugin.getConfig().getBoolean("hotkeys.shift-click"));
playerConfig.addDefault("doubleClick", plugin.getConfig().getBoolean("hotkeys.double-click"));
playerConfig.addDefault("shiftRightClick", plugin.getConfig().getBoolean("hotkeys.shift-right-click"));
boolean activeForThisPlayer = false;
boolean invActiveForThisPlayer = false;
boolean middleClick, shiftClick, doubleClick, shiftRightClick;
if (!playerFile.exists()) {
// If the player settings file does not exist for this player, set it to the
// default value
activeForThisPlayer = plugin.getConfig().getBoolean("sorting-enabled-by-default");
invActiveForThisPlayer = plugin.getConfig().getBoolean("inv-sorting-enabled-by-default");
middleClick = plugin.getConfig().getBoolean("hotkeys.middle-click");
shiftClick = plugin.getConfig().getBoolean("hotkeys.shift-click");
doubleClick = plugin.getConfig().getBoolean("hotkeys.double-click");
@ -87,13 +90,14 @@ public class JeffChestSortListener implements Listener {
} else {
// If the file exists, check if the player has sorting enabled
activeForThisPlayer = playerConfig.getBoolean("sortingEnabled");
invActiveForThisPlayer = playerConfig.getBoolean("invSortingEnabled");
middleClick = playerConfig.getBoolean("middleClick");
shiftClick = playerConfig.getBoolean("shiftClick");
doubleClick = playerConfig.getBoolean("doubleClick");
shiftRightClick = playerConfig.getBoolean("shiftRightClick");
}
JeffChestSortPlayerSetting newSettings = new JeffChestSortPlayerSetting(activeForThisPlayer,middleClick,shiftClick,doubleClick,shiftRightClick);
JeffChestSortPlayerSetting newSettings = new JeffChestSortPlayerSetting(activeForThisPlayer,invActiveForThisPlayer,middleClick,shiftClick,doubleClick,shiftRightClick);
// when "show-message-again-after-logout" is enabled, we don't care if the
// player already saw the message
@ -112,9 +116,24 @@ public class JeffChestSortListener implements Listener {
plugin.unregisterPlayer(event.getPlayer());
}
@EventHandler
public void onInventoryEvent(InventoryEvent event) {
plugin.getLogger().info("InventoryEvent");
public void onPlayerInventoryClose(InventoryCloseEvent event) {
if(event.getInventory()==null) return;
if(event.getInventory().getHolder()==null) return;
if(event.getInventory().getType() == null) return;
if(event.getInventory().getType() != InventoryType.CRAFTING) return; // Weird! Returns CRAFTING instead of PLAYER
if(!(event.getInventory().getHolder() instanceof Player)) return;
Player p = (Player) event.getInventory().getHolder();
if(!p.hasPermission("chestsort.use.inventory")) return;
registerPlayerIfNeeded(p);
JeffChestSortPlayerSetting setting = plugin.PerPlayerSettings.get(p.getUniqueId().toString());
if(!setting.invSortingEnabled) return;
plugin.organizer.sortInventory(p.getInventory(),9,35);
}
// This event fires when someone closes an inventory

View File

@ -13,7 +13,7 @@ public class JeffChestSortMessages {
JeffChestSortPlugin plugin;
final String MSG_ACTIVATED, MSG_DEACTIVATED, MSG_COMMANDMESSAGE, MSG_COMMANDMESSAGE2, MSG_PLAYERSONLY,
final String MSG_ACTIVATED, MSG_DEACTIVATED, MSG_INVACTIVATED, MSG_INVDEACTIVATED, MSG_COMMANDMESSAGE, MSG_COMMANDMESSAGE2, MSG_PLAYERSONLY,
MSG_PLAYERINVSORTED, MSG_INVALIDOPTIONS;
final String MSG_GUI_ENABLED, MSG_GUI_DISABLED;
@ -28,6 +28,12 @@ public class JeffChestSortMessages {
MSG_DEACTIVATED = ChatColor.translateAlternateColorCodes('&', plugin.getConfig()
.getString("message-sorting-disabled", "&7Automatic chest sorting has been &cdisabled&7.&r"));
MSG_INVACTIVATED = ChatColor.translateAlternateColorCodes('&', plugin.getConfig()
.getString("message-inv-sorting-enabled", "&7Automatic inventory sorting has been &aenabled&7.&r"));
MSG_INVDEACTIVATED = ChatColor.translateAlternateColorCodes('&', plugin.getConfig()
.getString("message-inv-sorting-disabled", "&7Automatic inventory sorting has been &cdisabled&7.&r"));
MSG_COMMANDMESSAGE = ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString(
"message-when-using-chest", "&7Hint: Type &6/chestsort&7 to enable automatic chest sorting."));

View File

@ -12,6 +12,9 @@ public class JeffChestSortPlayerSetting {
// Sorting enabled for this player?
boolean sortingEnabled;
// Inventory sorting enabled for this player?
boolean invSortingEnabled;
// Hotkey settings
boolean middleClick, shiftClick, doubleClick, shiftRightClick;
@ -20,12 +23,13 @@ public class JeffChestSortPlayerSetting {
// Did we already show the message how to activate sorting?
boolean hasSeenMessage = false;
JeffChestSortPlayerSetting(boolean sortingEnabled, boolean middleClick, boolean shiftClick, boolean doubleClick, boolean shiftRightClick) {
JeffChestSortPlayerSetting(boolean sortingEnabled, boolean invSortingEnabled, boolean middleClick, boolean shiftClick, boolean doubleClick, boolean shiftRightClick) {
this.sortingEnabled = sortingEnabled;
this.middleClick = middleClick;
this.shiftClick = shiftClick;
this.doubleClick = doubleClick;
this.shiftRightClick = shiftRightClick;
this.invSortingEnabled = invSortingEnabled;
}
}

View File

@ -67,7 +67,7 @@ public class JeffChestSortPlugin extends JavaPlugin {
JeffChestSortSettingsGUI settingsGUI;
String sortingMethod;
ArrayList<String> disabledWorlds;
int currentConfigVersion = 19;
int currentConfigVersion = 21;
boolean usingMatchingConfig = true;
boolean debug = false;
boolean verbose = true;
@ -119,12 +119,12 @@ public class JeffChestSortPlugin extends JavaPlugin {
disabledWorlds = (ArrayList<String>) getConfig().getStringList("disabled-worlds");
// Config version prior to 5? Then it must have been generated by ChestSort 1.x
if (getConfig().getInt("config-version", 0) < 5) {
/*if (getConfig().getInt("config-version", 0) < 5) {
renameConfigIfTooOld();
// 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();
JeffChestSortConfigUpdater configUpdater = new JeffChestSortConfigUpdater(this);
configUpdater.updateConfig();
@ -145,6 +145,7 @@ public class JeffChestSortPlugin extends JavaPlugin {
// for every missing option.
// By default, sorting is disabled. Every player has to run /chestsort once
getConfig().addDefault("sorting-enabled-by-default", false);
getConfig().addDefault("inv-sorting-enabled-by-default", false);
getConfig().addDefault("show-message-when-using-chest", true);
getConfig().addDefault("show-message-when-using-chest-and-sorting-is-enabled", false);
getConfig().addDefault("show-message-again-after-logout", true);
@ -298,7 +299,8 @@ public class JeffChestSortPlugin extends JavaPlugin {
// Does anyone actually need this?
if (verbose) {
getLogger().info("Current sorting method: " + sortingMethod);
getLogger().info("Sorting enabled by default: " + getConfig().getBoolean("sorting-enabled-by-default"));
getLogger().info("Chest sorting enabled by default: " + getConfig().getBoolean("sorting-enabled-by-default"));
getLogger().info("Inventory sorting enabled by default: " + getConfig().getBoolean("inv-sorting-enabled-by-default"));
getLogger().info("Auto generate category files: " + getConfig().getBoolean("auto-generate-category-files"));
getLogger().info("Sort time: " + getConfig().getString("sort-time"));
getLogger().info("Allow hotkeys: " + getConfig().getBoolean("allow-hotkeys"));
@ -372,6 +374,8 @@ public class JeffChestSortPlugin extends JavaPlugin {
() -> Boolean.toString(getConfig().getBoolean("show-message-again-after-logout"))));
bStats.addCustomChart(new Metrics.SimplePie("sorting_enabled_by_default",
() -> Boolean.toString(getConfig().getBoolean("sorting-enabled-by-default"))));
bStats.addCustomChart(new Metrics.SimplePie("inv_sorting_enabled_by_default",
() -> Boolean.toString(getConfig().getBoolean("inv-sorting-enabled-by-default"))));
bStats.addCustomChart(
new Metrics.SimplePie("using_matching_config_version", () -> Boolean.toString(usingMatchingConfig)));
bStats.addCustomChart(new Metrics.SimplePie("sort_time", () -> getConfig().getString("sort-time")));
@ -509,6 +513,7 @@ public class JeffChestSortPlugin extends JavaPlugin {
p.getUniqueId().toString() + ".yml");
YamlConfiguration playerConfig = YamlConfiguration.loadConfiguration(playerFile);
playerConfig.set("sortingEnabled", setting.sortingEnabled);
playerConfig.set("invSortingEnabled",setting.invSortingEnabled);
playerConfig.set("hasSeenMessage", setting.hasSeenMessage);
playerConfig.set("middleClick",setting.middleClick);
playerConfig.set("shiftClick",setting.shiftClick);

View File

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

View File

@ -20,6 +20,10 @@
# once to enable automatic chest sorting.
sorting-enabled-by-default: false
# when set to false, new players will have to run /invsort on
# once to enable automatic inventory sorting.
inv-sorting-enabled-by-default: false
# when set to true, players with sorting DISABLED will be
# shown a message on how to enable automatic chest sorting
# when they use a chest for the first time.
@ -197,6 +201,8 @@ message-when-using-chest: "&7Hint: Type &6/chestsort&7 to enable automatic chest
message-when-using-chest2: "&7Hint: Type &6/chestsort&7 to disable automatic chest sorting."
message-sorting-disabled: "&7Automatic chest sorting has been &cdisabled&7."
message-sorting-enabled: "&7Automatic chest sorting has been &aenabled&7."
message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
message-player-inventory-sorted: "&7Your inventory has been sorted."
message-error-players-only: "&cError: This command can only be run by players."
message-error-invalid-options: "&cError: Unknown option %s. Valid options are %s."
@ -212,6 +218,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7Hint: Type &6/chestsort&7 to disable automatic chest sorting."
#message-sorting-disabled: "&7Automatic chest sorting has been &cdisabled&7."
#message-sorting-enabled: "&7Automatic chest sorting has been &aenabled&7."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7Your inventory has been sorted."
#message-error-players-only: "&cError: This command can only be run by players."
#message-error-invalid-options: "&cError: Unknown option %s. Valid options are %s."
@ -223,10 +231,13 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-gui-shift-right-click: "Shift + Right-Click"
##### Chinese - Thanks to qsefthuopq and Aira-Sakuranomiya for translating!
##### Note: Some messages are still untranslated. Please send me your translation at SpigotMC
#message-when-using-chest: "&7提示: 输入 &6/chestsort&7 来启用自动整理"
#message-when-using-chest2: "&7提示: 输入 &6/chestsort&7 来关闭自动整理"
#message-sorting-disabled: "&7自动整理已 &c关闭&7."
#message-sorting-enabled: "&7自动整理已 &a启用&7."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7已成功整理你的背包"
#message-error-players-only: "&c错误: 指令只能由玩家运行"
#message-error-invalid-options: "&c错误: 位置选项 %s. 有效选项为 %s"
@ -243,6 +254,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7小提醒: 輸入 &6/chestsort&7 來關閉自動整理箱子"
#message-sorting-disabled: "&7自動整理箱子已 &c關閉&7"
#message-sorting-enabled: "&7自動整理箱子已 &a開啟&7"
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7你的背包已成功整理."
#message-error-players-only: "&c錯誤: 這個指令只能由玩家使用"
#message-error-invalid-options: "&c錯誤: 未知選項 %s. 有效的選項為 %s."
@ -259,6 +272,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7Hint: Gebruik &6/chestsort&7 om automatische kist sortering uit te zetten."
#message-sorting-disabled: "&7Automatische kist sortering is &cuitgeschakeld&7."
#message-sorting-enabled: "&7Automatische kist sortering is &aingeschakeld&7."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7Je inventaris is gesorteerd."
#message-error-players-only: "&cFout: Dit commando kan alleen door spelers worden gebruikt."
#message-error-invalid-options: "&cFout: Onbekende optie %s. Mogelijke opties zijn %s."
@ -270,10 +285,13 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-gui-shift-right-click: "Shift + Right-Click"
##### French - Thanks to automatizer, demon57730 and FichdlMaa for translating!
##### Note: Some messages are still untranslated. Please send me your translation at SpigotMC
#message-when-using-chest: "&7Remarque: Écris &6/chestsort&7 pour activer le classement automatique."
#message-when-using-chest2: "&7Remarque: Écris &6/chestsort&7 pour désactiver le classement automatique."
#message-sorting-disabled: "&7Le classement automatique a été &cdésactivé&7."
#message-sorting-enabled: "&7Le classement automatique a été &aactivé&7."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7Votre inventaire a été trié."
#message-error-players-only: "&cErreur: Cette commande ne peut être utilisée que par des joueurs."
#message-error-invalid-options: "&cErreur: Option inconnue %s. Les options valides sont %s."
@ -289,6 +307,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7Hinweis: Benutze &6/chestsort&7 um die automatische Kistensortierung zu deaktivieren."
#message-sorting-disabled: "&7Automatische Kistensortierung &cdeaktiviert&7."
#message-sorting-enabled: "&7Automatische Kistensortierung &aaktiviert&7."
#message-inv-sorting-disabled: "&7Automatische Inventarsortierung &cdeaktiviert&7."
#message-inv-sorting-enabled: "&7Automatische Inventarsortierung &aaktiviert&7."
#message-player-inventory-sorted: "&7Dein Inventar wurde sortiert."
#message-error-players-only: "&cFehler: Dieser Befehl ist nur für Spieler verfügbar."
#message-error-invalid-options: "&cFehler: Unbekannte Option %s. Gültige Optionen sind %s."
@ -305,6 +325,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7Automatikus láda rendezés bekapcsolás: &6/chestsort"
#message-sorting-disabled: "&7Automatikus láda rendezés kikapcsolva."
#message-sorting-enabled: "&7Automatikus láda rendezés bekapcsolva."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-error-players-only: "&cHiba: Ezt a parancsot csak játékos használhatja."
#message-player-inventory-sorted: "&7A leltárad rendezve lett."
#message-error-invalid-options: "&cHiba: Ismeretlen opció %s. Helyes opció %s."
@ -321,6 +343,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7Nota: inserire &6/chestsort&7 per disabilitare l'ordinamento automatico dei bauli."
#message-sorting-disabled: "&7L'ordinamento automatico dei bauli è stato &cdisattivato&7."
#message-sorting-enabled: "&7L'ordinamento automatico dei bauli è stato &aattivato&7."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7Il tuo inventario è stato ordinato."
#message-error-players-only: "&cErrore: questo comando è disponibile solo per i giocatori."
#message-error-invalid-options: "&cErrore: Parametro sconosciuto %s. I parametri validi sono %s."
@ -337,6 +361,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7ヒント: &6/chestsort&7 と入力すると自動チェスト整理を無効にできます。"
#message-sorting-disabled: "&7自動チェスト整理は現在 &cOFF&7です。"
#message-sorting-enabled: "&7自動チェスト整理は現在 &aON&7です。"
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-error-players-only: "&cエラー: このコマンドはプレイヤーのみ実行できます。"
#message-player-inventory-sorted: "&7Your inventory has been sorted."
#message-error-invalid-options: "&cError: Unknown option %s. Valid options are %s."
@ -348,10 +374,13 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-gui-shift-right-click: "Shift + Right-Click"
##### Korean (한국어) - Thanks to kf12 for translating!
##### Note: Some messages are still untranslated. Please send me your translation at SpigotMC
#message-when-using-chest: "&7정보: &6/chestsort&7 명령어로 자동 창고 정리를 활성화 할 수 있습니다."
#message-when-using-chest2: "&7정보: &6/chestsort&7 명령어로 자동 창고 정리를 비활성화 할 수 있습니다."
#message-sorting-disabled: "&7자동 창고 정리가 &c비활성화&7 되었습니다."
#message-sorting-enabled: "&7자동 창고 정리가 &a활성화&7 되었습니다."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7인벤토리가 정리 되었습니다."
#message-error-players-only: "&cError: 이 명령은 플레이어만 실행할 수 있습니다."
#message-error-invalid-options: "&cError: 알 수 없는 옵션 %s. 올바른 옵션은 %s 입니다."
@ -368,6 +397,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7Dica: Digite &6/chestsort&7 para desabilitar a organização automática."
#message-sorting-disabled: "&7A Organização automática de baús foi &cdesabilitada&7."
#message-sorting-enabled: "&7A Organização automática de baús foi &ahabilitada&7."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7Seu inventário foi organizado."
#message-error-players-only: "&cErro: Esse comando não pode ser executado por jogadores."
#message-error-invalid-options: "&cError: Unknown option %s. Valid options are %s."
@ -384,6 +415,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7Подсказка: введите &6/chestsort&7, чтобы отключить автоматическую сортировку вещей в сундуках."
#message-sorting-disabled: "&7Автоматическая сортировка вещей в сундуках была &cотключена&7."
#message-sorting-enabled: "&7Автоматическая сортировка вещей в сундуках была &aвключена&7."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7Ваш инвентарь был отсортирован."
#message-error-players-only: "&cОшибка: эта команда может быть использована только игроками."
#message-error-invalid-options: "&cОшибка: Неизвестная опция %s. Допустимые опции: %s."
@ -400,6 +433,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7Pista: Usa &6/chestsort&7 para desactivar el orden automático de los cofres."
#message-sorting-disabled: "&7Orden automático de los cofres &cdesactivado&7."
#message-sorting-enabled: "&7Orden automático de los cofres &aactivado&7."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7Tu inventario ha sido ordenado."
#message-error-players-only: "&cError: Este comando solo puede ser ejecutado por jugadores."
#message-error-invalid-options: "&cError: %s es una opción inválida. Las opciones válidas son: %s."
@ -416,6 +451,8 @@ message-gui-shift-right-click: "Shift + Right-Click"
#message-when-using-chest2: "&7Ipucu: &6/chestsort&7 Yazarak Otomatik Sandık Organizasyon Sistemini Kapatabilirsin."
#message-sorting-disabled: "&7Otomatik Sandık Organizasyonu &cKapatıldı&7."
#message-sorting-enabled: "&7Otomatik Sandık Organizasyonu &aAçıldı&7."
#message-inv-sorting-disabled: "&7Automatic inventory sorting has been &cdisabled&7."
#message-inv-sorting-enabled: "&7Automatic inventory sorting has been &aenabled&7."
#message-player-inventory-sorted: "&7Envanteriniz Düzenlendi."
#message-error-players-only: "&cHata: Bu Komut Yalnızca Oyuncular Tarafından Kullanılabilir."
#message-error-invalid-options: "&cHata: Bilinmeyen Ayar %s."
@ -431,4 +468,4 @@ message-gui-shift-right-click: "Shift + Right-Click"
#########################
# please do not change the following line manually!
config-version: 19
config-version: 21

View File

@ -1,6 +1,6 @@
main: de.jeffclan.JeffChestSort.JeffChestSortPlugin
name: ChestSort
version: 7.6-pre1
version: 7.6
api-version: 1.13
description: Allows automatic chest sorting
author: mfnalex