Advertisement
Guest User

Warps

a guest
Jul 18th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. package us.impulsemc.core;
  2.  
  3. import org.bukkit.command.Command;
  4. import org.bukkit.command.CommandExecutor;
  5. import org.bukkit.command.CommandSender;
  6. import org.bukkit.entity.Player;
  7.  
  8. public class Warps implements CommandExecutor {
  9. Main m = null;
  10.  
  11. public boolean onCommand(CommandSender sender, Command cmd, String label,
  12. String[] args) {
  13.  
  14. Player player = (Player) sender;
  15.  
  16. if (cmd.getName().equalsIgnoreCase("PVP")) {
  17.  
  18. player.performCommand("warp pvp");
  19.  
  20. } else if (cmd.getName().equalsIgnoreCase("Staff")) {
  21.  
  22. player.performCommand("warp staff");
  23.  
  24. }
  25. return false;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement