logo resized
This commit is contained in:
parent
79ccf6c6cb
commit
ff2f45438d
@ -117,20 +117,12 @@ public final class Listeners {
|
|||||||
|
|
||||||
private String luckperms(String message, Player p) {
|
private String luckperms(String message, Player p) {
|
||||||
User user = luckPermsAPI.getPlayerAdapter(Player.class).getUser(p);
|
User user = luckPermsAPI.getPlayerAdapter(Player.class).getUser(p);
|
||||||
SortedMap<Integer, String> prefixes = user.getCachedData().getMetaData().getPrefixes();
|
String prefix = user.getCachedData().getMetaData().getPrefix();
|
||||||
SortedMap<Integer, String> suffixes = user.getCachedData().getMetaData().getSuffixes();
|
String suffix = user.getCachedData().getMetaData().getPrefix();
|
||||||
if (message.contains("#prefix#")&&prefixes.size()>0) {
|
if (message.contains("#prefix#")&&prefix != null) {
|
||||||
String prefix = "";
|
|
||||||
for(int i = 0; i<prefixes.size(); i++){
|
|
||||||
prefix = prefix+prefixes.get(i);
|
|
||||||
}
|
|
||||||
message = message.replace("#prefix#", prefix);
|
message = message.replace("#prefix#", prefix);
|
||||||
}
|
}
|
||||||
if (message.contains("#suffix#")&&suffixes.size()>0) {
|
if (message.contains("#suffix#")&&suffix != null) {
|
||||||
String suffix = "";
|
|
||||||
for(int i = 0; i<suffixes.size(); i++){
|
|
||||||
suffix = suffix+suffixes.get(i);
|
|
||||||
}
|
|
||||||
message = message.replace("#suffix#", suffix);
|
message = message.replace("#suffix#", suffix);
|
||||||
}
|
}
|
||||||
message = message.replace("#prefix#", "").replace("#suffix#", "");
|
message = message.replace("#prefix#", "").replace("#suffix#", "");
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.0 MiB |
Loading…
Reference in New Issue
Block a user