Fix group prefix and suffix issue. #110

This commit is contained in:
cnaude 2015-08-16 16:33:02 -07:00
parent 78dcdb8450
commit a279fddd15
3 changed files with 7 additions and 7 deletions

View File

@ -82,7 +82,7 @@ public class Test implements IRCCommandInterface {
}
} else {
sender.sendMessage(ChatColor.LIGHT_PURPLE + "Testing " + playername);
sender.sendMessage("displayName : " + plugin.getDisplayName(name));
sender.sendMessage("displayName : " + plugin.getDisplayName(name));
sender.sendMessage("getGroupPrefix : " + plugin.getGroupPrefix(plugin.defaultPlayerWorld, playername));
sender.sendMessage("getGroupSuffix : " + plugin.getGroupSuffix(plugin.defaultPlayerWorld, playername));
sender.sendMessage("getPlayerPrefix : " + plugin.getPlayerPrefix(plugin.defaultPlayerWorld, playername));

View File

@ -105,7 +105,7 @@ public class PurpleIRC extends JavaPlugin {
public String LOG_HEADER;
public String LOG_HEADER_F;
static final Logger log = Logger.getLogger("Minecraft");
static final Logger LOG = Logger.getLogger("Minecraft");
private final String sampleFileName;
private final String MAINCONFIG;
private File pluginFolder;
@ -781,7 +781,7 @@ public class PurpleIRC extends JavaPlugin {
* @param message
*/
public void logInfo(String message) {
log.log(Level.INFO, String.format("%s %s", LOG_HEADER, message));
LOG.log(Level.INFO, String.format("%s %s", LOG_HEADER, message));
}
/**
@ -789,7 +789,7 @@ public class PurpleIRC extends JavaPlugin {
* @param message
*/
public void logError(String message) {
log.log(Level.SEVERE, String.format("%s %s", LOG_HEADER, message));
LOG.log(Level.SEVERE, String.format("%s %s", LOG_HEADER, message));
}
/**
@ -798,7 +798,7 @@ public class PurpleIRC extends JavaPlugin {
*/
public void logDebug(String message) {
if (debugEnabled) {
log.log(Level.INFO, String.format("%s [DEBUG] %s", LOG_HEADER, message));
LOG.log(Level.INFO, String.format("%s [DEBUG] %s", LOG_HEADER, message));
}
}

View File

@ -701,10 +701,10 @@ public class ChatTokenizer {
pPrefix = plugin.getPlayerPrefix(worldName, playerName);
}
if (message.contains("%GROUPSUFFIX%")) {
gSuffix = plugin.getPlayerSuffix(worldName, playerName);
gSuffix = plugin.getGroupSuffix(worldName, playerName);
}
if (message.contains("%GROUPPREFIX%")) {
gPrefix = plugin.getPlayerPrefix(worldName, playerName);
gPrefix = plugin.getGroupPrefix(worldName, playerName);
}
if (message.contains("%GROUP%")) {
group = plugin.getPlayerGroup(worldName, playerName);