it works
@EventHandler public void anvil(EntityDamageEvent e){ if(e.getEntity().equals(Material.ANVIL)){ e.setCancelled(true); } }
I have this String i = e.getEntity().getKiller().getItemInHand().getType().name().toString(); but now i get the name of the item that minecraft...
fixed it by myself
Can you give me a code? otherwise stop posting on this thread
Yes, can you tell me how then?
I have this if(c.getInt("Gems") >= 700){ int Gems = c.getInt("Gems"); Gems--; c.set("Gems", Integer.valueOf(Gems)); but now the interger...
You realy need to check this youtuber he is realy good in making plugins config: [media]
First you need to save the location in the config by your /setspawn command Location l = p.getLocation();...
In your code you set the default bukkit spawn the bukkit spawn is always south.
AdamQpzm thanx it works!
AdamQpzm 1 2 and 4 are in the console
Plugers11 i did this @EventHandler public void onBlockPlace(BlockPlaceEvent e) { if...
WeeziMonkey that is not working.
I have a code for that players cannot place. but i need them to place blocks in a other world how can i make a if statement for this?
Separate names with a comma.