Advertisement
riking

Untitled

Jul 4th, 2013
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. package what.ever;
  2.  
  3. public class SetSpawnCommand implements TabExecutor {
  4.     private final WhatEverPlugin plugin;
  5.     public SetSpawnCommand(WhatEverPlugin plugin) [
  6.         this.plugin = plugin;
  7.     }
  8.  
  9.     @Override
  10.     public boolean onCommand(CommandSender sender, Command cmd, String commandlabel, String[] args) {
  11.         // Blah
  12.         if (foo) return false; // print usage
  13.         // Do stuff
  14.     }
  15.  
  16.     @Override
  17.     public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
  18.         return ImmutableList.of(); // no completions
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement