mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-22 16:05:00 +00:00
fix format
This commit is contained in:
parent
4261f36826
commit
20528cec66
2 changed files with 9 additions and 7 deletions
|
@ -6,7 +6,9 @@ import org.bukkit.ChatColor;
|
||||||
public enum ConfigEntry
|
public enum ConfigEntry
|
||||||
{
|
{
|
||||||
SCHEME_PRIMARY("scheme.primary"),
|
SCHEME_PRIMARY("scheme.primary"),
|
||||||
SCHEME_SECONDARY("scheme.secondary");
|
SCHEME_SECONDARY("scheme.secondary"),
|
||||||
|
// Server
|
||||||
|
SERVER_GUILD_CHAT_LOGGING_ENABLED("server.guild_chat_logging.enabled");
|
||||||
|
|
||||||
private final String path;
|
private final String path;
|
||||||
|
|
||||||
|
@ -17,13 +19,13 @@ public enum ConfigEntry
|
||||||
|
|
||||||
private static Config config = TFGuilds.getPlugin().config;
|
private static Config config = TFGuilds.getPlugin().config;
|
||||||
|
|
||||||
|
public boolean getBoolean()
|
||||||
|
{
|
||||||
|
return config.getBoolean(path);
|
||||||
|
}
|
||||||
|
|
||||||
public ChatColor getChatColor()
|
public ChatColor getChatColor()
|
||||||
{
|
{
|
||||||
return ChatColor.valueOf(config.getString(path).toUpperCase());
|
return ChatColor.valueOf(config.getString(path).toUpperCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isLoggingGuildChat()
|
|
||||||
{
|
|
||||||
return config.getBoolean("server.guild_chat_logging.enabled");
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -291,7 +291,7 @@ public class Guild
|
||||||
{
|
{
|
||||||
broadcast(Common.tl("%s%[%p%Guild Chat %s%| %p%" + GUtil.colorize(name) + "%s%] %p%" + as + ChatColor.WHITE + ": %p%" + msg));
|
broadcast(Common.tl("%s%[%p%Guild Chat %s%| %p%" + GUtil.colorize(name) + "%s%] %p%" + as + ChatColor.WHITE + ": %p%" + msg));
|
||||||
|
|
||||||
if (ConfigEntry.isLoggingGuildChat())
|
if (ConfigEntry.SERVER_GUILD_CHAT_LOGGING_ENABLED.getBoolean())
|
||||||
{
|
{
|
||||||
GLog.info(Common.tl("%s%[%p%Guild Chat %s%| %p%" + GUtil.colorize(name) + "%s%] %p%" + as + ChatColor.WHITE + ": %p%" + msg));
|
GLog.info(Common.tl("%s%[%p%Guild Chat %s%| %p%" + GUtil.colorize(name) + "%s%] %p%" + as + ChatColor.WHITE + ": %p%" + msg));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue