Make sure we cannot place down artifacts...

dev
sigonasr2 9 years ago
parent 2b49013e44
commit dfb5594207
  1. BIN
      TwosideKeeper.jar
  2. 2
      src/plugin.yml
  3. 4
      src/sig/plugin/TwosideKeeper/TwosideKeeper.java

Binary file not shown.

@ -1,6 +1,6 @@
name: TwosideKeeper name: TwosideKeeper
main: sig.plugin.TwosideKeeper.TwosideKeeper main: sig.plugin.TwosideKeeper.TwosideKeeper
version: 3.4.0 version: 3.4.0a
commands: commands:
money: money:
description: Tells the player the amount of money they are holding. description: Tells the player the amount of money they are holding.

@ -1533,6 +1533,10 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
//This is an item cube. //This is an item cube.
ev.setCancelled(true); ev.setCancelled(true);
} }
if (Artifact.isArtifact(ev.getItemInHand())) {
ev.setCancelled(true);
}
} }
@EventHandler(priority=EventPriority.LOW) @EventHandler(priority=EventPriority.LOW)

Loading…
Cancel
Save