Duel pvp

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Blowns

Premium
Feedback score
1
Posts
1,014
Reactions
526
Resources
0
simple!1
Code:
          if (args.length == 0) {
            sender.sendMessage(ChatColor.RED + "/duel <player>");  
            return true;
          }
          Player target = Bukkit.getServer().getPlayer(args[0]);
          if (target == null) {
            sender.sendMessage(args[0] + " isn't online!");
            return true;
          }
          sender.sendMessage("Duel request sent to " + target.getName());
          target.sendMessage(sender.getName() + " wants to duel you.");
       }
 
Status
This thread has been locked.
Top