Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public class cmd_gamemode implements CommandExecutor {
  2. @SuppressWarnings("deprecation")
  3.  
  4. @Override
  5. public boolean onCommand(CommandSender commandSender, Command command, String s, String[] args) {
  6. if(commandSender instanceof Player){
  7. Player player = (Player) commandSender;
  8. if(player.hasPermission("kartoffel.gm")){
  9. if(args.length == 0){
  10. player.sendMessage(Main.prefix + "§cBenutze /gm [1-3] ");
  11. }
  12. }
  13.  
  14. }
  15. return true;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement