changed StringUtils to String

This commit is contained in:
Indyuce 2019-08-27 19:18:56 +02:00
parent aaad7c688d
commit ac4e260795
2 changed files with 2 additions and 6 deletions

View File

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

View File

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