Added getServerPermissionName() for OnlinePlayer

This commit is contained in:
2023-05-13 13:35:14 +02:00
parent f0a9fca952
commit 61fb7b3142
2 changed files with 11 additions and 3 deletions

View File

@@ -23,11 +23,19 @@ public interface AbstractOnlinePlayer extends AbstractOffPlayer {
/**
* Returns the name of the current server the player is in.
* The returned value is used by the 'pandalib-permissions' system.
* @return the name of the current server the player is in.
*/
String getServerName();
/**
* Returns the name of the current server as used by the permission system.
* The returned value is used by the 'pandalib-permissions' system.
* @return the permission name of the current server.
*/
default String getServerPermissionName() {
return getServerName();
}
/**
* Returns the name of the current world the player is in.
* The returned value is used by the 'pandalib-permissions' system.