mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 19:45:54 +01:00
Fix group prefix and suffix issue. #110
This commit is contained in:
parent
78dcdb8450
commit
a279fddd15
@ -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));
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user