Class BukkitPermissionsChecker

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean has​(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
      Checks if a user (no console) has a specific permission (globally).
      boolean hasOnServer​(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
      Checks if a user (no console) has a specific permission on the current server.
      boolean hasOnServerInWorld​(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
      Checks if a user (no console) has a specific permission on the current server and in the current world.
      boolean hasOrConsole​(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
      Checks if a user (or console) has a specific permission (globally).
      boolean hasOrConsoleOnServer​(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
      Checks if a user (or console) has a specific permission on the current server.
      boolean hasOrConsoleOnServerInWorld​(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
      Checks if a user (or console) has a specific permission on the current server and in the current world.
      boolean hasPerm​(org.bukkit.command.CommandSender sender, java.lang.String permission)
      Checks if a user (no console) has a specific permission (globally).
      boolean hasPermOnServer​(org.bukkit.command.CommandSender sender, java.lang.String permission)
      Checks if a user (no console) has a specific permission on the current server.
      boolean hasPermOnServerInWorld​(org.bukkit.command.CommandSender sender, java.lang.String permission)
      Checks if a user (no console) has a specific permission on the current server and in the current world.
      boolean hasPermOrConsole​(org.bukkit.command.CommandSender sender, java.lang.String permission)
      Checks if a user (or console) has a specific permission (globally).
      boolean hasPermOrConsoleOnServer​(org.bukkit.command.CommandSender sender, java.lang.String permission)
      Checks if a user (or console) has a specific permission on the current server.
      boolean hasPermOrConsoleOnServerInWorld​(org.bukkit.command.CommandSender sender, java.lang.String permission)
      Checks if a user (or console) has a specific permission on the current server and in the current world.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BukkitPermissionsChecker

        public BukkitPermissionsChecker()
    • Method Detail

      • hasPerm

        public boolean hasPerm​(org.bukkit.command.CommandSender sender,
                               java.lang.String permission)
        Checks if a user (no console) has a specific permission (globally).
        Parameters:
        sender - the command sender to check a permission for
        permission - the permission to check
        Returns:
        the result of the permission check
      • hasPermOrConsole

        public boolean hasPermOrConsole​(org.bukkit.command.CommandSender sender,
                                        java.lang.String permission)
        Checks if a user (or console) has a specific permission (globally). If sender is console this function return true.
        Parameters:
        sender - the command sender to check a permission for
        permission - the permission to check
        Returns:
        the result of the permission check
      • hasPermOnServer

        public boolean hasPermOnServer​(org.bukkit.command.CommandSender sender,
                                       java.lang.String permission)
        Checks if a user (no console) has a specific permission on the current server.
        Parameters:
        sender - the command sender to check a permission for
        permission - the permission to check
        Returns:
        the result of the permission check
      • hasPermOrConsoleOnServer

        public boolean hasPermOrConsoleOnServer​(org.bukkit.command.CommandSender sender,
                                                java.lang.String permission)
        Checks if a user (or console) has a specific permission on the current server.
        Parameters:
        sender - the command sender to check a permission for
        permission - the permission to check
        Returns:
        the result of the permission check
      • hasPermOnServerInWorld

        public boolean hasPermOnServerInWorld​(org.bukkit.command.CommandSender sender,
                                              java.lang.String permission)
        Checks if a user (no console) has a specific permission on the current server and in the current world.
        Parameters:
        sender - the command sender to check a permission for
        permission - the permission to check
        Returns:
        the result of the permission check
      • hasPermOrConsoleOnServerInWorld

        public boolean hasPermOrConsoleOnServerInWorld​(org.bukkit.command.CommandSender sender,
                                                       java.lang.String permission)
        Checks if a user (or console) has a specific permission on the current server and in the current world.
        Parameters:
        sender - the command sender to check a permission for
        permission - the permission to check
        Returns:
        the result of the permission check
      • has

        public boolean has​(org.bukkit.command.CommandSender sender,
                           java.lang.String perm,
                           boolean msg)
        Checks if a user (no console) has a specific permission (globally).
        Parameters:
        sender - the command sender to check a permission for
        perm - the permission to check
        msg - if a no-permission message is send to the sender
        Returns:
        the result of the permission check
      • hasOrConsole

        public boolean hasOrConsole​(org.bukkit.command.CommandSender sender,
                                    java.lang.String perm,
                                    boolean msg)
        Checks if a user (or console) has a specific permission (globally).
        Parameters:
        sender - the command sender to check a permission for
        perm - the permission to check
        msg - if a no-permission message is send to the sender
        Returns:
        the result of the permission check
      • hasOnServer

        public boolean hasOnServer​(org.bukkit.command.CommandSender sender,
                                   java.lang.String perm,
                                   boolean msg)
        Checks if a user (no console) has a specific permission on the current server.
        Parameters:
        sender - the command sender to check a permission for
        perm - the permission to check
        msg - if a no-permission message is send to the sender
        Returns:
        the result of the permission check
      • hasOrConsoleOnServer

        public boolean hasOrConsoleOnServer​(org.bukkit.command.CommandSender sender,
                                            java.lang.String perm,
                                            boolean msg)
        Checks if a user (or console) has a specific permission on the current server.
        Parameters:
        sender - the command sender to check a permission for
        perm - the permission to check
        msg - if a no-permission message is send to the sender
        Returns:
        the result of the permission check
      • hasOnServerInWorld

        public boolean hasOnServerInWorld​(org.bukkit.command.CommandSender sender,
                                          java.lang.String perm,
                                          boolean msg)
        Checks if a user (no console) has a specific permission on the current server and in the current world.
        Parameters:
        sender - the command sender to check a permission for
        perm - the permission to check
        msg - if a no-permission message is send to the sender
        Returns:
        the result of the permission check
      • hasOrConsoleOnServerInWorld

        public boolean hasOrConsoleOnServerInWorld​(org.bukkit.command.CommandSender sender,
                                                   java.lang.String perm,
                                                   boolean msg)
        Checks if a user (or console) has a specific permission on the current server and in the current world.
        Parameters:
        sender - the command sender to check a permission for
        perm - the permission to check
        msg - if a no-permission message is send to the sender
        Returns:
        the result of the permission check