Created
December 13, 2011 03:07
-
-
Save resba/1470334 to your computer and use it in GitHub Desktop.
Messing about
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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