Class RankPermission

java.lang.Object
me.remigio07.chatplugin.api.server.rank.RankPermission

public abstract class RankPermission extends Object
Permission adapter used to prevent compatibility issues between Bukkit's and Sponge's libraries.

The method bukkitValue() returns a Permission object with a default value of PermissionDefault.FALSE which prevents OPs from having the highest rank in the ranks list. Sponge doesn't support this feature, unluckily. (Or does it? LMK!)

  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.permissions.Permission
    Gets the equivalent Bukkit's Permission with a default value of PermissionDefault.FALSE which prevents operators from having the highest rank in the ranks list.
    Gets the rank related to this object.
    Gets a string representing the permission required to players to have this rank.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getRank

      public Rank getRank()
      Gets the rank related to this object.
      Returns:
      Related rank
    • bukkitValue

      public org.bukkit.permissions.Permission bukkitValue()
      Gets the equivalent Bukkit's Permission with a default value of PermissionDefault.FALSE which prevents operators from having the highest rank in the ranks list.
      Returns:
      Bukkit-adapted permission
    • toString

      public String toString()
      Gets a string representing the permission required to players to have this rank.
      Overrides:
      toString in class Object