File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/org/maxgamer/quickshop/listener Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 5454import org .maxgamer .quickshop .api .shop .Shop ;
5555import org .maxgamer .quickshop .api .shop .ShopAction ;
5656import org .maxgamer .quickshop .shop .SimpleInfo ;
57+ import org .maxgamer .quickshop .util .GameVersion ;
5758import org .maxgamer .quickshop .util .InteractUtil ;
5859import org .maxgamer .quickshop .util .MsgUtil ;
5960import org .maxgamer .quickshop .util .PermissionChecker ;
@@ -169,6 +170,10 @@ private void postControlPanel(PlayerInteractEvent e) {
169170 if (e .getAction () == Action .RIGHT_CLICK_BLOCK ) {
170171 e .setUseItemInHand (Event .Result .DENY );
171172 }
173+ //Cancel for interacting with sign (editing)
174+ if (plugin .getGameVersion ().ordinal () >= GameVersion .v1_20_R1 .ordinal ()) {
175+ e .setCancelled (true );
176+ }
172177 }
173178 }
174179 }
You can’t perform that action at this time.
0 commit comments