Examples of VaultHook


Examples of org.kitteh.vanish.hooks.plugins.VaultHook

    }

    private String injectPlayerInformation(String message, Player player) {
        final GeoIPToolsHook geoip = (GeoIPToolsHook) this.plugin.getHookManager().getHook(HookType.GeoIPTools);
        final BPermissionsHook bperms = (BPermissionsHook) this.plugin.getHookManager().getHook(HookType.BPermissions);
        final VaultHook vault = (VaultHook) this.plugin.getHookManager().getHook(HookType.Vault);
        message = message.replace("%p", player.getName());
        message = message.replace("%d", player.getDisplayName());
        String prefix = bperms.getPrefix(player);
        if (prefix.isEmpty()) {
            prefix = vault.getPrefix(player);
        }
        message = message.replace("%up", prefix);
        String suffix = bperms.getSuffix(player);
        if (suffix.isEmpty()) {
            suffix = vault.getSuffix(player);
        }
        message = message.replace("%us", suffix);
        message = message.replace("%city", geoip.getCity(player));
        message = message.replace("%country", geoip.getCountry(player));
        return message;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.