log.info("ChatManager disabled!");
}
protected void initializeConfiguration(FileConfiguration config) {
// At migrate and setup defaults
PermissionsEx pex = (PermissionsEx) this.getServer().getPluginManager().getPlugin("PermissionsEx");
FileConfiguration pexConfig = pex.getConfig();
// Flags
config.set("enable", pexConfig.getBoolean("permissions.chat.enable", false));
config.set("message-format", pexConfig.getString("permissions.chat.format", ChatListener.MESSAGE_FORMAT));
config.set("global-message-format", pexConfig.getString("permissions.chat.global-format", ChatListener.GLOBAL_MESSAGE_FORMAT));
config.set("ranged-mode", pexConfig.getBoolean("permissions.chat.force-ranged", ChatListener.RANGED_MODE));
config.set("chat-range", pexConfig.getDouble("permissions.chat.chat-range", ChatListener.CHAT_RANGE));
pex.saveConfig();
}