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

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

package net.minecraft.server;

public class CommandStop extends CommandAbstract {
	
	public CommandStop() {
	}
	
	public String getCommand() {
		return "stop";
	}
	
	public String getUsage(ICommandListener icommandlistener) {
		return "commands.stop.usage";
	}
	
	public void execute(ICommandListener icommandlistener, String[] astring) throws CommandException {
		if (MinecraftServer.getServer().worldServer != null) {
			a(icommandlistener, this, "commands.stop.start");
		}
		
		MinecraftServer.getServer().safeShutdown();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy