File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
java/com/artillexstudios/axsmithing/listener Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 33import com .artillexstudios .axsmithing .AxSmithingPlugin ;
44import com .viaversion .viaversion .api .Via ;
55import com .viaversion .viaversion .api .protocol .version .ProtocolVersion ;
6+ import org .bukkit .Bukkit ;
67import org .bukkit .Material ;
78import org .bukkit .event .Event ;
89import 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 {
Original file line number Diff line number Diff line change 11menu :
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
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
4242 material : air
4343
4444messages :
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
You can’t perform that action at this time.
0 commit comments