Package net.sacredlabyrinth.phaed.simpleclans.events

Examples of net.sacredlabyrinth.phaed.simpleclans.events.PlayerHomeSetEvent


                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())));
View Full Code Here

TOP

Related Classes of net.sacredlabyrinth.phaed.simpleclans.events.PlayerHomeSetEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.