All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraft.server.CommandSeed Maven / Gradle / Ivy

package net.minecraft.server;

public class CommandSeed extends CommandAbstract {
	
	public CommandSeed() {
	}
	
	public boolean canUse(ICommandListener icommandlistener) {
		return MinecraftServer.getServer().T() || super.canUse(icommandlistener);
	}
	
	public String getCommand() {
		return "seed";
	}
	
	public int a() {
		return 2;
	}
	
	public String getUsage(ICommandListener icommandlistener) {
		return "commands.seed.usage";
	}
	
	public void execute(ICommandListener icommandlistener, String[] astring) throws CommandException {
		Object object = icommandlistener instanceof EntityHuman ? ((EntityHuman) icommandlistener).world : MinecraftServer.getServer().getWorldServer(0);
		
		icommandlistener.sendMessage(new ChatMessage("commands.seed.success", Long.valueOf(((World) object).getSeed())));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy