}
@Override
public boolean onCommand(CommandSender sender, List<String> args)
{
BukkitWorld world = (BukkitWorld) this.getWorld(sender, args.size() > 0 ? args.get(0) : "");
if (world == null)
{
sender.sendMessage(ERROR_COLOR + "World not found. Either you are not in a world with Terrain Control, or you are the console.");
return false;
}
world.reloadSettings();
sender.sendMessage(MESSAGE_COLOR + "Configs for world '" + world.getName() + "' reloaded");
if (sender instanceof Player)
{
TerrainControl.log(LogMarker.INFO, "{} reloaded the config files for world '{}'.", new Object[]
{
sender.getName(), world.getName()
});
}
return true;
}