Guest User

Untitled

a guest
Apr 27th, 2014
159
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (cmd.getName().equalsIgnoreCase("whatteam")
  2.                     && sender instanceof Player) {
  3.                 if (red.containsKey(player)) {
  4.                     player.sendMessage(ChatColor.RED + "You are in team Red!");
  5.                 } else if (blue.containsKey(player)) {
  6.                     player.sendMessage(ChatColor.BLUE + "You are in team Blue!");
  7.                 } else
  8.                     player.sendMessage("You are in no teams!");
  9.             }
  10.             if (cmd.getName().equalsIgnoreCase("leaveteam")) {
  11.                 if (red.containsKey(player)) {
  12.                     player.sendMessage(ChatColor.RED
  13.                             + "You have left your team!");
  14.                     red.remove(player);
  15.                 }
  16.                 if (blue.containsKey(player)) {
  17.                     blue.remove(player);
  18.                     player.sendMessage(ChatColor.BLUE
  19.                             + "You have left your team!");
  20.                 }
RAW Paste Data