Dieser Commit ist enthalten in:
Ursprung
c7d8947671
Commit
2a53d1a3fd
@ -36,7 +36,7 @@ import java.util.stream.Collectors;
|
|||||||
@UtilityClass
|
@UtilityClass
|
||||||
public class TypeUtils {
|
public class TypeUtils {
|
||||||
|
|
||||||
public static void init() {
|
static void init() {
|
||||||
SWCommandUtils.addMapper(Player.class, SWCommandUtils.createMapper(Bukkit::getPlayer, s -> Bukkit.getOnlinePlayers().stream().map(Player::getName).collect(Collectors.toList())));
|
SWCommandUtils.addMapper(Player.class, SWCommandUtils.createMapper(Bukkit::getPlayer, s -> Bukkit.getOnlinePlayers().stream().map(Player::getName).collect(Collectors.toList())));
|
||||||
SWCommandUtils.addMapper(GameMode.class, SWCommandUtils.createMapper(s -> {
|
SWCommandUtils.addMapper(GameMode.class, SWCommandUtils.createMapper(s -> {
|
||||||
s = s.toLowerCase();
|
s = s.toLowerCase();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren