Plugin Help Cactus drop dosen't work

Discussion in 'Plugin Help/Development/Requests' started by mcrazmouze, Nov 14, 2015.

Thread Status:
Not open for further replies.
  1. What i want it to do "I would like if a player dies with an cactus the cactus don't drop. :)"

    And can you make variables in bukkit like if command succes CommandSucces=1?
    Like that??

    package me.razmouze;
    import org.bukkit.entity.Player;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.Listener;
    import org.bukkit.event.entity.PlayerDeathEvent;
    import net.md_5.bungee.api.ChatColor;
    import net.minecraft.server.v1_8_R3.Material;
    public class Running implements Listener {
        public Running(Keepitems plugin) {
            plugin.getServer().getPluginManager().registerEvents(this, plugin);
        public void OnDeath(PlayerDeathEvent e) {
            Player player=e.getEntity();
            if (!player.hasPermission("allow.keep.item")) {
                player.sendMessage(ChatColor.DARK_RED + "You lost your items!");
Thread Status:
Not open for further replies.

Share This Page