mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
changed StringUtils to String
This commit is contained in:
parent
aaad7c688d
commit
ac4e260795
@ -3,8 +3,6 @@ package net.Indyuce.mmoitems.api.crafting.condition;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import net.Indyuce.mmoitems.api.crafting.ConditionalDisplay;
|
||||
import net.Indyuce.mmoitems.api.player.PlayerData;
|
||||
import net.Indyuce.mmoitems.api.util.AltChar;
|
||||
@ -35,7 +33,7 @@ public class ClassCondition extends Condition {
|
||||
|
||||
@Override
|
||||
public String formatDisplay(String string) {
|
||||
return string.replace("#class#", StringUtils.join(classes, ", "));
|
||||
return string.replace("#class#", String.join(", ", classes));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -3,8 +3,6 @@ package net.Indyuce.mmoitems.api.crafting.condition;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import net.Indyuce.mmoitems.api.player.PlayerData;
|
||||
|
||||
public class PermissionCondition extends Condition {
|
||||
@ -34,7 +32,7 @@ public class PermissionCondition extends Condition {
|
||||
|
||||
@Override
|
||||
public String formatDisplay(String string) {
|
||||
return string.replace("#perms#", StringUtils.join(permissions, ", "));
|
||||
return string.replace("#perms#", String.join(", ", permissions));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user