change suicide command and nausea command

Discussion in 'Archived: Plugin Requests' started by shadowx80, Dec 3, 2013.

  1. Offline

    shadowx80

    Delete
     
  2. Offline

    PolarCraft

    Hmm. Suicide to what? And the name of nausea?
     
  3. Offline

    timtower Administrator Administrator Moderator

    shadowx80 CommandHelper can do this
    Code:
    Code:
    /IWantDead = pkill()
    /Nausea = set_peffect(player(),9,0,30)
     
  4. Offline

    Qaez

    shadowx80
    If you want to script the plugin on yourself use:
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
    Player player = (Player) sender;
    if(label.equalsIgnoreCase("commandyouchoose")){ // If the player typed /commandyouchoose then do the following...
    player.setHealth(0); //this will kill the player
    return true;
    }else if(label.equalsIgnoreCase("commandyouchoose")){
    player.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 600, 1)); // this will add nausea to the player
    return true;
    }
    return false;
    }

    Sorry if there is something wrong in this code but I wrote it on my mobile , if you need any further help please make Sire you use Qaez if you want me to make this plugin forq you please send me a message!
     

Share This Page