mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 19:45:54 +01:00
Tokenizer changes.
This commit is contained in:
parent
d440e0220b
commit
3363d71415
@ -616,17 +616,34 @@ public class ChatTokenizer {
|
|||||||
private String playerTokenizer(String playerName, String message) {
|
private String playerTokenizer(String playerName, String message) {
|
||||||
plugin.logDebug("Tokenizing " + playerName);
|
plugin.logDebug("Tokenizing " + playerName);
|
||||||
String worldName = plugin.defaultPlayerWorld;
|
String worldName = plugin.defaultPlayerWorld;
|
||||||
plugin.logDebug("playerTokenizer: 1 ");
|
|
||||||
String pSuffix = plugin.getPlayerSuffix(worldName, playerName);
|
String pSuffix = "";
|
||||||
plugin.logDebug("playerTokenizer: 2 ");
|
String pPrefix = "";
|
||||||
String pPrefix = plugin.getPlayerPrefix(worldName, playerName);
|
String gSuffix = "";
|
||||||
plugin.logDebug("playerTokenizer: 3 ");
|
String gPrefix = "";
|
||||||
String gPrefix = plugin.getGroupPrefix(worldName, playerName);
|
String group = "";
|
||||||
plugin.logDebug("playerTokenizer: 4 ");
|
|
||||||
String gSuffix = plugin.getGroupSuffix(worldName, playerName);
|
if (message.contains("%PLAYERSUFFIX%")) {
|
||||||
plugin.logDebug("playerTokenizer: 5 ");
|
plugin.logDebug("playerTokenizer: %PLAYERSUFFIX%");
|
||||||
String group = plugin.getPlayerGroup(worldName, playerName);
|
pSuffix = plugin.getPlayerSuffix(worldName, playerName);
|
||||||
plugin.logDebug("playerTokenizer: 6 ");
|
}
|
||||||
|
if (message.contains("%PLAYERPREFIX%")) {
|
||||||
|
plugin.logDebug("playerTokenizer: %PLAYERPREFIX%");
|
||||||
|
pPrefix = plugin.getPlayerPrefix(worldName, playerName);
|
||||||
|
}
|
||||||
|
if (message.contains("%GROUPSUFFIX%")) {
|
||||||
|
plugin.logDebug("playerTokenizer: %GROUPSUFFIX%");
|
||||||
|
gSuffix = plugin.getPlayerSuffix(worldName, playerName);
|
||||||
|
}
|
||||||
|
if (message.contains("%GROUPPREFIX%")) {
|
||||||
|
plugin.logDebug("playerTokenizer: %GROUPPREFIX%");
|
||||||
|
gPrefix = plugin.getPlayerPrefix(worldName, playerName);
|
||||||
|
}
|
||||||
|
if (message.contains("%GROUP%")) {
|
||||||
|
plugin.logDebug("playerTokenizer: %GROUP%");
|
||||||
|
group = plugin.getPlayerGroup(worldName, playerName);
|
||||||
|
}
|
||||||
|
|
||||||
String displayName = plugin.getDisplayName(playerName);
|
String displayName = plugin.getDisplayName(playerName);
|
||||||
plugin.logDebug("playerTokenizer: 7 ");
|
plugin.logDebug("playerTokenizer: 7 ");
|
||||||
String worldAlias = "";
|
String worldAlias = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user