
net.minecraft.server.CommandList Maven / Gradle / Ivy
package net.minecraft.server;
public class CommandList extends CommandAbstract {
public CommandList() {
}
public String getCommand() {
return "list";
}
public int a() {
return 0;
}
public String getUsage(ICommandListener icommandlistener) {
return "commands.players.usage";
}
public void execute(ICommandListener icommandlistener, String[] astring) throws CommandException {
int i = MinecraftServer.getServer().I();
icommandlistener.sendMessage(new ChatMessage("commands.players.list", Integer.valueOf(i), Integer.valueOf(MinecraftServer.getServer().J())));
icommandlistener.sendMessage(new ChatComponentText(MinecraftServer.getServer().getPlayerList().b(astring.length > 0 && "uuids".equalsIgnoreCase(astring[0]))));
icommandlistener.setCommandStat(CommandObjectiveExecutor.EnumCommandResult.QUERY_RESULT, i);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy