Package de.Keyle.MyPet.api.player
Class AdminPermissions
java.lang.Object
de.Keyle.MyPet.api.player.AdminPermissions
Single source of truth for MyPet admin permission node strings + parent-gate helper.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPermission to open a pet backpack while in creative mode.static final StringPermission to ignore the respawn timer and its cost.static final StringPermission to ignore the skilltree switch fee.static final StringPermission to open a pet backpack the rules would otherwise close.static final StringPermission to ignore skilltree requirements.static final StringPermission to clone another player's pet.static final StringPermission to create a pet directly, without taming.static final StringPermission to open the browser-based config editor.static final StringPermission to set or add a pet's experience.static final StringPermission to change the server's experience rate.static final StringPermission to import pet data from another pet plugin.static final StringPermission to read any pet's admin info.static final StringPermission to run/petadmin infoagainst another player.static final StringPermission to open another player's pet inventory with/petadmin inventory.static final StringPermission to run/petadmin listagainst another player.The /mypetadmin subcommand nodes — used to gate the /mypetadmin parent literal.static final StringPermission to rename another player's pet.static final StringPermission to manage pet-storage NPCs.static final StringPermission to have up to the configured maximum number of pets out at once, rather than a fixed tier.static final StringPermission to store up to the configured maximum number of pets, rather than a fixed tier.static final StringPermission to purge stored pets in bulk.static final StringPermission to reload MyPet's configuration.static final StringPermission to delete another player's pet.static final StringPermission to revive a dead pet immediately.static final StringPermission to send another player's pet away with/petadmin sendaway.static final StringPermission to open the pet shop on another player's behalf.static final StringPermission to run/petadmin skillagainst another player.static final StringPermission to assign a skilltree to another player's pet.static final StringPermission to switch another player's active pet.static final StringPermission to use the support-ticket command.static final StringPermission to trigger an update check or download. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanTrue if the player holds any node in the set (a MyPet.admin holder has them all via children).static Predicate<CommandSourceStack> requiresNode(String node) A Brigadier.requires()predicate that admits non-player senders (console, command blocks) unconditionally and gates players onnode.
-
Field Details
-
EDITOR
Permission to open the browser-based config editor.- See Also:
-
IMPORT
Permission to import pet data from another pet plugin.- See Also:
-
RELOAD
Permission to reload MyPet's configuration.- See Also:
-
TICKET
Permission to use the support-ticket command.- See Also:
-
UPDATE
Permission to trigger an update check or download.- See Also:
-
CLONE
Permission to clone another player's pet.- See Also:
-
CREATE
Permission to create a pet directly, without taming.- See Also:
-
EXP
Permission to set or add a pet's experience.- See Also:
-
EXPRATE
Permission to change the server's experience rate.- See Also:
-
INFO
Permission to read any pet's admin info.- See Also:
-
NAME
Permission to rename another player's pet.- See Also:
-
NPC
Permission to manage pet-storage NPCs.- See Also:
-
PURGE
Permission to purge stored pets in bulk.- See Also:
-
REMOVE
Permission to delete another player's pet.- See Also:
-
RESPAWN
Permission to revive a dead pet immediately.- See Also:
-
SKILLTREE
Permission to assign a skilltree to another player's pet.- See Also:
-
SWITCH
Permission to switch another player's active pet.- See Also:
-
INFO_PLAYER
Permission to run/petadmin infoagainst another player.- See Also:
-
LIST
Permission to run/petadmin listagainst another player.- See Also:
-
INVENTORY
Permission to open another player's pet inventory with/petadmin inventory.- See Also:
-
SENDAWAY
Permission to send another player's pet away with/petadmin sendaway.- See Also:
-
SKILL
Permission to run/petadmin skillagainst another player.- See Also:
-
SHOP_OTHER
Permission to open the pet shop on another player's behalf.- See Also:
-
BYPASS_SKILLTREE
Permission to ignore skilltree requirements.- See Also:
-
BYPASS_FEE
Permission to ignore the skilltree switch fee.- See Also:
-
BYPASS_DEATH
Permission to ignore the respawn timer and its cost.- See Also:
-
BYPASS_INVENTORY
Permission to open a pet backpack the rules would otherwise close.- See Also:
-
BYPASS_CREATIVE
Permission to open a pet backpack while in creative mode.- See Also:
-
PETSTORAGE_LIMIT_ALL
Permission to store up to the configured maximum number of pets, rather than a fixed tier.- See Also:
-
PETLIMIT_ACTIVE_ALL
Permission to have up to the configured maximum number of pets out at once, rather than a fixed tier.- See Also:
-
MYPETADMIN_NODES
The /mypetadmin subcommand nodes — used to gate the /mypetadmin parent literal.
-
-
Method Details
-
hasAnyOf
True if the player holds any node in the set (a MyPet.admin holder has them all via children).- Parameters:
player- the player to testnodes- the permission nodes to check- Returns:
trueif the player holds at least one of them
-
requiresNode
A Brigadier.requires()predicate that admits non-player senders (console, command blocks) unconditionally and gates players onnode. Single-sources the per-command admin gate so every subcommand wires it identically.- Parameters:
node- the permission node to require- Returns:
- a predicate usable as a Brigadier command requirement
-