Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( commandLabel.equalsIgnoreCase( "setarena" ) )
- if(sender.hasPermission("event.setarena") ) {
- if(args.length == 1) {
- String world = player.getLocation().getWorld().getName();
- double x = player.getLocation().getX();
- double y = player.getLocation().getY();
- double z = player.getLocation().getZ();
- this.getConfig().set(args[0] + "-arena.world", world);
- this.getConfig().set(args[0] + "-arena.x", x);
- this.getConfig().set(args[0] + "-arena.y", y);
- this.getConfig().set(args[0] + "-arena.z", z);
- this.saveConfig();
- player.sendMessage(ChatColor.GOLD + "Arena "+ ChatColor.RED + args[0] + ChatColor.GOLD + " set!");
- }
- if(args.length == 0) {
- player.sendMessage(ChatColor.RED + "Usage:" + ChatColor.GOLD + "/setarena" + ChatColor.RED + "<Name>");
- }
- }else{
- player.sendMessage(ChatColor.RED + "You dont have permission");
- }
Advertisement
Add Comment
Please, Sign In to add comment