Class PermissionUtils
java.lang.Object
org.geysermc.geyser.platform.neoforge.PermissionUtils
Common logic for handling the more complicated way we have to register permission on NeoForge
-
Method Summary
-
Method Details
-
register
public static boolean register(String permission, org.geysermc.geyser.api.util.TriState permissionDefault, net.neoforged.neoforge.server.permission.events.PermissionGatherEvent.Nodes event) Registers the given permission and its default value to the event. If the permission has the same name as one that has already been registered to the event, it will not be registered. In other words, it will not override.- Parameters:
permission- the permission to registerpermissionDefault- the permission's default value. SeeGeyserRegisterPermissionsEvent.register(String, TriState)for TriState meanings.event- the registration event- Returns:
- true if the permission was registered
-