} else {
player.sendMessage(ChatColor.RED + language.getPhrase("InvalidResidence"));
}
return true;
} else if (args[1].equals("add")) {
WorldEditPlugin wep = (WorldEditPlugin) server.getPluginManager().getPlugin("WorldEdit");
if (wep != null) {
if (wep.getConfig().getInt("wand-item") == Residence.getConfigManager().selectionToolId) {
smanager.worldEdit(player);
}
}
if (smanager.hasPlacedBoth(player.getName())) {
ClaimedResidence res = rmanager.getByName(args[2]);
if (res != null) {
res.addArea(player, new CuboidArea(smanager.getPlayerLoc1(player.getName()), smanager.getPlayerLoc2(player.getName())), args[3], resadmin);
} else {
player.sendMessage(ChatColor.RED + language.getPhrase("InvalidResidence"));
}
} else {
player.sendMessage(ChatColor.RED + language.getPhrase("SelectPoints"));
}
return true;
} else if (args[1].equals("replace")) {
WorldEditPlugin wep = (WorldEditPlugin) server.getPluginManager().getPlugin("WorldEdit");
if (wep != null) {
if (wep.getConfig().getInt("wand-item") == Residence.getConfigManager().selectionToolId) {
smanager.worldEdit(player);
}
}
if (smanager.hasPlacedBoth(player.getName())) {
ClaimedResidence res = rmanager.getByName(args[2]);