logo resized

This commit is contained in:
FeuSalamander 2023-03-18 13:38:14 +01:00
parent 79ccf6c6cb
commit ff2f45438d
2 changed files with 4 additions and 12 deletions

View File

@ -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