Advertisement
JusticeKingCayden

Untitled

Apr 9th, 2020
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1. package com.hetisjoey.hubhats.commands;
  2.  
  3. import com.hetisjoey.hubhats.Main;
  4. import org.bukkit.ChatColor;
  5. import org.bukkit.command.Command;
  6. import org.bukkit.command.CommandExecutor;
  7. import org.bukkit.command.CommandSender;
  8. import com.hetisjoey.hubhats.utils;
  9.  
  10. public class CommandExecutor implements CommandExecutor {
  11.   public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
  12.     if(command.getName().equalsIgnoreCase("hubhats")){
  13.         if(sender instanceof Player){
  14.             Player p = (Player)sender;
  15.             Selector.openSelectMenu(p);
  16.         } else{
  17.             sender.sendMessage("You cannot run that command.");
  18.         }
  19.     }
  20.     return true;
  21.   }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement