use of me.dreamerzero.miniplaceholders.common.PlaceholdersCommand in project MiniPlaceholders by 4drian3d.
the class VelocityPlugin method registerPlatformCommand.
@Override
public void registerPlatformCommand() {
BrigadierCommand brigadierCMD = new BrigadierCommand(new PlaceholdersCommand<CommandSource>(() -> proxy.getAllPlayers().stream().map(Player::getUsername).toList(), (String st) -> proxy.getPlayer(st).orElse(null)).placeholderTestCommand("vminiplaceholders"));
proxy.getCommandManager().register(brigadierCMD);
}
Aggregations