Class RankPermission
java.lang.Object
me.remigio07.chatplugin.api.server.rank.RankPermission
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 TypeMethodDescriptionorg.bukkit.permissions.Permission
Gets the equivalent Bukkit'sPermission
with a default value ofPermissionDefault.FALSE
which prevents operators from having the highest rank in the ranks list.getRank()
Gets the rank related to this object.toString()
Gets a string representing the permission required to players to have this rank.
-
Method Details
-
getRank
Gets the rank related to this object.- Returns:
- Related rank
-
bukkitValue
public org.bukkit.permissions.Permission bukkitValue()Gets the equivalent Bukkit'sPermission
with a default value ofPermissionDefault.FALSE
which prevents operators from having the highest rank in the ranks list.- Returns:
- Bukkit-adapted permission
-
toString
Gets a string representing the permission required to players to have this rank.
-