8.17.4 release

This commit is contained in:
mfnalex 2020-08-29 15:36:11 +02:00
parent d26b39609f
commit a953913bcc
6 changed files with 32 additions and 6 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## 8.17.4
- Improved GUI detection
- Added Polish translation (thanks to PLKaratusPL)
## 8.17.3
- Improved GUI detection, specifically for AdvancedAchievements
## 8.17.2
- Added possibility to sort a player's inventory from console using /invsort <player> [toggle|on|off|hotbar|inv|all]
- Added placeholders (see new config.yml)

View File

@ -9,7 +9,7 @@
<name>ChestSort</name>
<url>https://www.chestsort.de</url>
<description>Automatically sorts your chests!</description>
<version>8.17.2</version>
<version>8.17.4</version>
<packaging>jar</packaging>
<properties>

View File

@ -70,7 +70,7 @@ public class ChestSortPlugin extends JavaPlugin implements de.jeff_media.ChestSo
String sortingMethod;
ArrayList<String> disabledWorlds;
ChestSortAPIHandler api;
final int currentConfigVersion = 42;
final int currentConfigVersion = 43;
boolean usingMatchingConfig = true;
protected boolean debug = false;
boolean verbose = true;

View File

@ -15,8 +15,8 @@ public class GenericGUIHook {
public boolean isPluginGUI(Inventory inv) {
if(!enabled) return false;
if(inv.getHolder()!=null && inv.getHolder().getClass().getName().contains("GUI")) {
main.debug("Generic GUI detected by class name containing \"GUI\"");
if(inv.getHolder()!=null && inv.getHolder().getClass().getName().toLowerCase().contains("gui")) {
main.debug("Generic GUI detected by class name containing \"gui\"");
return true;
}
return false;

View File

@ -524,6 +524,25 @@ message-gui-right-click: "Empty Chest (Right-Click/Double-Right-Click)"
#message-gui-left-click: "Fill Chest (Left-Click/Double-Left-Click)"
#message-gui-right-click: "Empty Chest (Right-Click/Double-Right-Click)"
##### Polish - Thanks to PLKaratusPL for translating!
#message-when-using-chest: "&7Wskazówka: Wpisz &6/chestsort&7 by włączyć automatyczne sortowanie skrzyń."
#message-when-using-chest2: "&7Wskazówka: Wpisz &6/chestsort&7 by wyłączyć automatyczne sortowanie skrzyń."
#message-sorting-disabled: "&7Automatyczne sortowanie skrzyń zostało &cwyłączone&7."
#message-sorting-enabled: "&7Automatyczne sortowanie skrzyń zostało &awłączone&7."
#message-inv-sorting-disabled: "&7Automatyczne sortowanie ekwipunku zostało &cwyłączone&7."
#message-inv-sorting-enabled: "&7Automatyczne sortowanie ekwipunku zostało &awłączone&7."
#message-player-inventory-sorted: "&7Twój ekwipunek został posortowany."
#message-error-players-only: "&cBłąd: To polecenie może być używane tylko przez graczy."
#message-error-invalid-options: "&cBłąd: Nieznana opcja %s. Prawidłowe opcje to %s."
#message-gui-enabled: "&aWłączone"
#message-gui-disabled: "&cWyłączone"
#message-gui-middle-click: "Środkowy Przycisk Myszy"
#message-gui-shift-click: "Shift + Kliknięcie"
#message-gui-double-click: "Podwójne Kliknięcie"
#message-gui-shift-right-click: "Shift + PPM"
#message-gui-left-click: "Wypełnienie Skrzyni (LPM/Podwójny LPM)"
#message-gui-right-click: "Opróżnienie Skrzyni (PPM/Podwójny PPM)"
##### Portuguese - Thanks to wildastral for translating!
##### Note: Some messages are still untranslated. Please send me your translation at SpigotMC
#message-when-using-chest: "&7Dica: Digite &6/chestsort&7 para habilitar a organização automática."
@ -620,4 +639,4 @@ log: false
# Please DO NOT change the following line manually!
# It is used by the automatic config updater.
config-version: 42
config-version: 43

View File

@ -1,6 +1,6 @@
main: de.jeff_media.ChestSort.ChestSortPlugin
name: ChestSort
version: 8.17.2
version: 8.17.4
api-version: "1.13"
description: Allows automatic chest sorting
author: mfnalex