Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1.     public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
  2.         if(cmd.getName().equalsIgnoreCase("basic")
  3.                 || commandLabel.equalsIgnoreCase("b"))     
  4.         { // If the player typed /basic then do the following...
  5.                        sender.sendMessage("Working!")
  6.                        sender.sendMessage("Not Working!")
  7.                         return true;
  8.         } //If this has happened the function will break and return true. if this hasn't happened the a value of false will be returned.
  9.         return false;
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement