h31ix

Untitled

Jan 10th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. List list = player.getServer().matchPlayer(args[0]);
  2. if(list.size() == 1)
  3. {
  4. Player target = Bukkit.getServer().matchPlayer(name).get(0);
  5. if (plugin.pvp.get(target) != null)
  6. {
  7. player.getServer().broadcastMessage(player.getname()+" voted for "+target.getName());
  8. plugin.votepvp.put(player, target);
  9. }
  10. else
  11. {
  12. player.sendMessage(target.getName()+" is not involved in a PVP fight");
  13. }
  14. }
  15. else
  16. {
  17. player.sendMessage("Player not found");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment