Skip to content

Instantly share code, notes, and snippets.

@resba
Created December 13, 2011 03:07
Show Gist options
  • Save resba/1470334 to your computer and use it in GitHub Desktop.
Save resba/1470334 to your computer and use it in GitHub Desktop.
Messing about
/*
Written inpromptu by Matt Sowden (resba) with Ron Melanz (questionablei)
Records stored: 12/12/11 @ 10:00pm
*/
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
       Player player = null;
       if (sender instanceof Player) {
           player = (Player) sender;
       }
if(cmd.getName().equalsIgnoreCase("bitch"){
if(args.length == 1){
if(player.getName("questionablei")==TRUE || player.getName("resba")==TRUE){
   //todo: epic pimp slapping
  Player p = player.getNameExact(args[0]);
  p.setHealth(getHealth() - 20);
}
}
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment