
net.minecraft.server.CommandPublish Maven / Gradle / Ivy
package net.minecraft.server;
public class CommandPublish extends CommandAbstract {
public CommandPublish() {
}
public String getCommand() {
return "publish";
}
public String getUsage(ICommandListener icommandlistener) {
return "commands.publish.usage";
}
public void execute(ICommandListener icommandlistener, String[] astring) throws CommandException {
String s = MinecraftServer.getServer().a(WorldSettings.EnumGamemode.SURVIVAL, false);
if (s != null) {
a(icommandlistener, this, "commands.publish.started", s);
} else {
a(icommandlistener, this, "commands.publish.failed");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy