You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			35 lines
		
	
	
		
			946 B
		
	
	
	
		
			Java
		
	
			
		
		
	
	
			35 lines
		
	
	
		
			946 B
		
	
	
	
		
			Java
		
	
package net.minecraft.command.server;
 | 
						|
 | 
						|
import net.minecraft.command.CommandBase;
 | 
						|
import net.minecraft.command.ICommandSender;
 | 
						|
import net.minecraft.server.MinecraftServer;
 | 
						|
import net.minecraft.world.WorldSettings;
 | 
						|
 | 
						|
public class CommandPublishLocalServer extends CommandBase
 | 
						|
{
 | 
						|
    private static final String __OBFID = "CL_00000799";
 | 
						|
 | 
						|
    public String getCommandName()
 | 
						|
    {
 | 
						|
        return "publish";
 | 
						|
    }
 | 
						|
 | 
						|
    public String getCommandUsage(ICommandSender sender)
 | 
						|
    {
 | 
						|
        return "commands.publish.usage";
 | 
						|
    }
 | 
						|
 | 
						|
    public void processCommand(ICommandSender sender, String[] args)
 | 
						|
    {
 | 
						|
        String s = MinecraftServer.getServer().shareToLAN(WorldSettings.GameType.SURVIVAL, false);
 | 
						|
 | 
						|
        if (s != null)
 | 
						|
        {
 | 
						|
            func_152373_a(sender, this, "commands.publish.started", new Object[] {s});
 | 
						|
        }
 | 
						|
        else
 | 
						|
        {
 | 
						|
            func_152373_a(sender, this, "commands.publish.failed", new Object[0]);
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |