Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
- if (!(sender instanceof Player)) {
- sender.sendMessage("You can't do this command from the console!");
- return true;
- }
- Player player = (Player) sender;
- if (!(player.hasPermission("test.example"))) {
- player.sendMessage(ChatColor.RED + "Du har saknar 'test.example'");
- return true;
- }
- if (args.length == 0) {
- // TODO
- return true;
- }
- Player target = Bukkit.getServer().getPlayerExact(args[0]);
- if (target == null) {
- // TODO
- return true;
- }
- // TODO
- return true;
- }
- }
Add Comment
Please, Sign In to add comment