Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (args[0].equalsIgnoreCase("createarena")) {
- if (p.hasPermission("ffa.createarena")) {
- plugin.getConfig().set("arenas." + args[1] + ".name", args[1]);
- plugin.getConfig().set("arenas." + args[1] + ".x", p.getLocation().getX());
- plugin.getConfig().set("arenas." + args[1] + ".y", p.getLocation().getY());
- plugin.getConfig().set("arenas." + args[1] + ".z", p.getLocation().getZ());
- plugin.getConfig().set("arenas." + args[1] + ".world", p.getLocation().getWorld());
- plugin.getConfig().getStringList("arenanames").add(args[1]);
- plugin.reloadConfig();
- p.sendMessage(getPrefix() + ChatColor.GOLD + " Successfully created arena " + args[1] + ".");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement