Advertisement
Guest User

Lobby

a guest
Jun 26th, 2017
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None
  1. package me.LandinosMC.HubPlugin.Lobby;
  2.  
  3. import org.bukkit.ChatColor;
  4. import org.bukkit.command.Command;
  5. import org.bukkit.command.CommandExecutor;
  6. import org.bukkit.command.CommandSender;
  7. import org.bukkit.entity.Player;
  8.  
  9. public class lobby implements CommandExecutor{
  10.  
  11. @Override
  12. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  13. Player player = (Player) sender;
  14. if(sender instanceof Player){
  15. player.chat("/hub");
  16. }
  17. else {
  18. sender.sendMessage(ChatColor.RED + "You Must Execute This As Player");
  19. }
  20.  
  21. return true;
  22. }
  23.  
  24. }
Advertisement
RAW Paste Data Copied
Advertisement