if (plugin.getSettingsManager().isHomebaseSetOnce() && clan.getHomeLocation() != null && !plugin.getPermissionsManager().has(player, "simpleclans.mod.home"))
{
ChatBlock.sendMessage(player, ChatColor.RED + plugin.getLang("home.base.only.once"));
return;
}
PlayerHomeSetEvent homeSetEvent = new PlayerHomeSetEvent(clan, cp, player.getLocation());
SimpleClans.getInstance().getServer().getPluginManager().callEvent(homeSetEvent);
if (homeSetEvent.isCancelled())
{
return;
}
clan.setHomeLocation(player.getLocation());
ChatBlock.sendMessage(player, ChatColor.AQUA + MessageFormat.format(plugin.getLang("hombase.set"), ChatColor.YELLOW + Helper.toLocationString(player.getLocation())));