File tree Expand file tree Collapse file tree 3 files changed +2
-71
lines changed
src/main/java/net/arcaniax/gopaint Expand file tree Collapse file tree 3 files changed +2
-71
lines changed Original file line number Diff line number Diff line change 2323import net .arcaniax .gopaint .listeners .ConnectListener ;
2424import net .arcaniax .gopaint .listeners .InteractListener ;
2525import net .arcaniax .gopaint .listeners .InventoryListener ;
26- import net .arcaniax .gopaint .objects .other .NmsManager ;
2726import net .arcaniax .gopaint .objects .other .Settings ;
2827import net .arcaniax .gopaint .objects .player .PlayerBrushManager ;
2928import net .arcaniax .gopaint .utils .DisabledBlocks ;
@@ -40,7 +39,6 @@ public class GoPaintPlugin extends JavaPlugin implements Listener {
4039
4140 private static final int BSTATS_ID = 10557 ;
4241 public static boolean plotSquaredEnabled ;
43- public static NmsManager nmsManager ;
4442 private static PlayerBrushManager manager ;
4543 private static GoPaintPlugin goPaintPlugin ;
4644 private static Settings settings ;
@@ -88,7 +86,6 @@ public void onEnable() {
8886 pm .registerEvents (inventoryListener , this );
8987 pm .registerEvents (cmdHandler , this );
9088 getCommand ("gopaint" ).setExecutor (cmdHandler );
91- nmsManager = new NmsManager ();
9289 DisabledBlocks .addBlocks ();
9390 // Check if we are in a safe environment
9491 ServerLib .checkUnsafeForks ();
Original file line number Diff line number Diff line change 2323import net .arcaniax .gopaint .objects .player .PlayerBrush ;
2424import net .arcaniax .gopaint .utils .XMaterial ;
2525import org .bukkit .Location ;
26- import org .bukkit .Material ;
2726import org .bukkit .entity .Player ;
2827import org .bukkit .event .EventHandler ;
2928import org .bukkit .event .EventPriority ;
3231import org .bukkit .event .player .PlayerInteractEvent ;
3332import org .bukkit .inventory .EquipmentSlot ;
3433
35- import java .util .Set ;
36-
3734public class InteractListener implements Listener {
3835
3936 public GoPaintPlugin plugin ;
@@ -45,10 +42,8 @@ public InteractListener(GoPaintPlugin main) {
4542 @ SuppressWarnings ("deprecation" )
4643 @ EventHandler (priority = EventPriority .LOWEST )
4744 public void onClick (PlayerInteractEvent e ) {
48- if (GoPaintPlugin .nmsManager .isAtLeastVersion (1 , 9 , 0 )) {
49- if (e .getHand () == EquipmentSlot .OFF_HAND ) {
50- return ;
51- }
45+ if (e .getHand () == EquipmentSlot .OFF_HAND ) {
46+ return ;
5247 }
5348 if (!e .getPlayer ().hasPermission ("gopaint.use" )) {
5449 return ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments