Make sure we cannot place down artifacts...

This commit is contained in:
sigonasr2 2016-06-24 00:31:53 -05:00
parent 2b49013e44
commit dfb5594207
3 changed files with 5 additions and 1 deletions

Binary file not shown.

View File

@ -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.

View File

@ -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)