Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package what.ever;
- public class SetSpawnCommand implements TabExecutor {
- private final WhatEverPlugin plugin;
- public SetSpawnCommand(WhatEverPlugin plugin) [
- this.plugin = plugin;
- }
- @Override
- public boolean onCommand(CommandSender sender, Command cmd, String commandlabel, String[] args) {
- // Blah
- if (foo) return false; // print usage
- // Do stuff
- }
- @Override
- public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
- return ImmutableList.of(); // no completions
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement