Skip to content

Latest commit

 

History

History
134 lines (134 loc) · 7.14 KB

cn.nukkit.command.ConsoleCommandSender.md

File metadata and controls

134 lines (134 loc) · 7.14 KB
    • 构造函数一览

      构造函数 
      构造函数描述
      ConsoleCommandSender() 
    • 成员函数一览

      All Methods Instance Methods Concrete Methods 
      修饰符和类 成员函数描述
      PermissionAttachment addAttachment(Plugin plugin) 
      PermissionAttachment addAttachment(Plugin plugin, String name) 
      PermissionAttachment addAttachment(Plugin plugin, String name, Boolean value) 
      Map<String,PermissionAttachmentInfo> getEffectivePermissions() 
      String getName()
      返回命令发送者的名称。
      Returns the name of the command sender.
      Server getServer()
      返回命令发送者所在的服务器。
      Returns the server of the command sender.
      boolean hasPermission(Permission permission) 
      boolean hasPermission(String name) 
      boolean isOp()
      返回这个对象是不是服务器管理员。
      Returns if this object is an operator.
      boolean isPermissionSet(Permission permission) 
      boolean isPermissionSet(String name) 
      boolean isPlayer() 
      void recalculatePermissions() 
      void removeAttachment(PermissionAttachment attachment) 
      void sendMessage(String message)
      给命令发送者返回信息。
      Sends a message to the command sender.
      void sendMessage(TextContainer message)
      给命令发送者返回信息。
      Sends a message to the command sender.
      void setOp(boolean value)
      把这个对象设置成服务器管理员。
      Sets this object to be an operator or not to be.
      • 继承自类 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait