Skip to content

Commit 4923a4f

Browse files
committed
Fix
1 parent 5c7bc5c commit 4923a4f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/java/com/artillexstudios/axsmithing/listener/InteractListener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.artillexstudios.axsmithing.AxSmithingPlugin;
44
import com.viaversion.viaversion.api.Via;
55
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
6+
import org.bukkit.Bukkit;
67
import org.bukkit.Material;
78
import org.bukkit.event.Event;
89
import org.bukkit.event.EventHandler;
@@ -20,7 +21,7 @@ public void onPlayerInteractEvent(@NotNull final PlayerInteractEvent event) {
2021
if (event.getAction().equals(Action.LEFT_CLICK_BLOCK)) return;
2122

2223
if (AxSmithingPlugin.is1_20()) {
23-
if (Via.getAPI().getPlayerVersion(event.getPlayer()) == ProtocolVersion.v1_20.getVersion() && !AxSmithingPlugin.getConfiguration().getBoolean("menu.v1_20.force-for-1_20-clients")) {
24+
if (Via.getAPI().getPlayerVersion(event.getPlayer()) >= ProtocolVersion.v1_20.getVersion() && !AxSmithingPlugin.getConfiguration().getBoolean("menu.1_20.force-for-1_20-clients")) {
2425
return;
2526
}
2627
} else {

src/main/resources/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
menu:
22
# If your server version is 1.20+, this is what will be shown for lower version clients
33
"1_20":
4-
title: '&7Upgrade items'
4+
title: '&0Upgrade items'
55
rows: 3
66
template-slot: 10
77
item-slot: 11
@@ -25,7 +25,7 @@ menu:
2525

2626
# If your server version is 1.16+, this is what will be shown to 1.20+ clients
2727
"1_16":
28-
title: '&7Upgrade items'
28+
title: '&0Upgrade items'
2929
rows: 3
3030
item-slot: 11
3131
upgrade-slot: 12
@@ -42,7 +42,7 @@ menu:
4242
material: air
4343

4444
messages:
45-
prefix: "&#AA3428AxSmithing &7» "
45+
prefix: "&#AA3428&lAxSmithing &7» "
4646
no-permission: "&cYou do not have permission to do this!"
4747
reload: "&aPlugin reloaded in %time%ms!"
4848

0 commit comments

Comments
 (0)