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) {
User user = luckPermsAPI.getPlayerAdapter(Player.class).getUser(p);
SortedMap<Integer, String> prefixes = user.getCachedData().getMetaData().getPrefixes();
SortedMap<Integer, String> suffixes = user.getCachedData().getMetaData().getSuffixes();
if (message.contains("#prefix#")&&prefixes.size()>0) {
String prefix = "";
for(int i = 0; i<prefixes.size(); i++){
prefix = prefix+prefixes.get(i);
}
String prefix = user.getCachedData().getMetaData().getPrefix();
String suffix = user.getCachedData().getMetaData().getPrefix();
if (message.contains("#prefix#")&&prefix != null) {
message = message.replace("#prefix#", prefix);
}
if (message.contains("#suffix#")&&suffixes.size()>0) {
String suffix = "";
for(int i = 0; i<suffixes.size(); i++){
suffix = suffix+suffixes.get(i);
}
if (message.contains("#suffix#")&&suffix != null) {
message = message.replace("#suffix#", suffix);
}
message = message.replace("#prefix#", "").replace("#suffix#", "");

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB