Java 类net.minecraft.server.ServerCommand 实例源码

项目:DiffUtils    文件:CraftServer_1710.java   
public boolean dispatchServerCommand(CommandSender sender, ServerCommand serverCommand) {
    if (sender instanceof Conversable) {
        Conversable conversable = (Conversable)sender;

        if (conversable.isConversing()) {
            conversable.acceptConversationInput(serverCommand.command);
            return true;
        }
    }
    try {
        this.playerCommandState = true;
        return dispatchCommand(sender, serverCommand.command);
    } catch (Exception ex) {
        getLogger().log(Level.WARNING, "Unexpected exception while parsing console command \"" + serverCommand.command + '"', ex);
        return false;
    } finally {
        this.playerCommandState = false;
    }
}
项目:CraftBukkit    文件:CraftServer.java   
public boolean dispatchServerCommand(CommandSender sender, ServerCommand serverCommand) {
    if (sender instanceof Conversable) {
        Conversable conversable = (Conversable)sender;

        if (conversable.isConversing()) {
            conversable.acceptConversationInput(serverCommand.command);
            return true;
        }
    }
    try {
        this.playerCommandState = true;
        return dispatchCommand(sender, serverCommand.command);
    } catch (Exception ex) {
        getLogger().log(Level.WARNING, "Unexpected exception while parsing console command \"" + serverCommand.command + '"', ex);
        return false;
    } finally {
        this.playerCommandState = false;
    }
}
项目:Almura-Server    文件:CraftServer.java   
public boolean dispatchServerCommand(CommandSender sender, ServerCommand serverCommand) {
    if (sender instanceof Conversable) {
        Conversable conversable = (Conversable)sender;

        if (conversable.isConversing()) {
            conversable.acceptConversationInput(serverCommand.command);
            return true;
        }
    }
    try {
        this.playerCommandState = true;
        return dispatchCommand(sender, serverCommand.command);
    } catch (Exception ex) {
        getLogger().log(Level.WARNING, "Unexpected exception while parsing console command \"" + serverCommand.command + '"', ex);
        return false;
    } finally {
        this.playerCommandState = false;
    }
}
项目:Tweakkit-Server    文件:CraftServer.java   
public boolean dispatchServerCommand(CommandSender sender, ServerCommand serverCommand) {
    if (sender instanceof Conversable) {
        Conversable conversable = (Conversable)sender;

        if (conversable.isConversing()) {
            conversable.acceptConversationInput(serverCommand.command);
            return true;
        }
    }
    try {
        this.playerCommandState = true;
        return dispatchCommand(sender, serverCommand.command);
    } catch (Exception ex) {
        getLogger().log(Level.WARNING, "Unexpected exception while parsing console command \"" + serverCommand.command + '"', ex);
        return false;
    } finally {
        this.playerCommandState = false;
    }
}
项目:Craft-city    文件:CraftServer.java   
public boolean dispatchServerCommand(CommandSender sender, ServerCommand serverCommand) {
    if (sender instanceof Conversable) {
        Conversable conversable = (Conversable)sender;

        if (conversable.isConversing()) {
            conversable.acceptConversationInput(serverCommand.command);
            return true;
        }
    }
    try {
        return dispatchCommand(sender, serverCommand.command);
    } catch (Exception ex) {
        getLogger().log(Level.WARNING, "Unexpected exception while parsing console command \"" + serverCommand.command + '"', ex);
        return false;
    }
}