From 7a49f5329d0b9dcedbebd265a24c03a9676b71bd Mon Sep 17 00:00:00 2001 From: SEKVAL Date: Thu, 17 Jul 2025 19:45:20 +0300 Subject: [PATCH] 1) Fixed a bug in the menu: when automatic sorting is not available, a switch is still displayed instead of the barrier, although it does not work. 2) Fixed the link to papermc (they changed it a bit) in the files JarRepositories.xml and pom.xml . (the plugin works well, I checked this version on my build) --- .idea/jarRepositories.xml | 65 +++++++++++++++++++ pom.xml | 2 +- .../de/jeff_media/chestsort/enums/Hotkey.java | 7 +- 3 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 .idea/jarRepositories.xml diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..b69f46d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 40b7c02..da115da 100644 --- a/pom.xml +++ b/pom.xml @@ -158,7 +158,7 @@ papermc - https://papermc.io/repo/repository/maven-public/ + https://repo.papermc.io/repository/maven-public/ diff --git a/src/main/java/de/jeff_media/chestsort/enums/Hotkey.java b/src/main/java/de/jeff_media/chestsort/enums/Hotkey.java index 90f7890..bdd15ec 100644 --- a/src/main/java/de/jeff_media/chestsort/enums/Hotkey.java +++ b/src/main/java/de/jeff_media/chestsort/enums/Hotkey.java @@ -40,7 +40,12 @@ public boolean hasPermission(Player player) { public static String getPermission(Hotkey hotkey) { if(hotkey == AUTO_SORT) { - return "chestsort.use"; + /* + Fixed a bug in the menu: when automatic sorting is not available, + a switch is still displayed instead of the barrier, although it does not work. + (It does not affect the operation of the auto-sorting mechanics itself, it still works well ) + */ + return "chestsort.automatic"; } if(hotkey == AUTO_INV_SORT) {