return true;
}
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));