Skip to content

LuckPerms Integration

MateoF24 edited this page Aug 15, 2026 · 4 revisions

LuckPerms Integration

By default /timer needs operator level 2. If you would rather hand out individual commands, OnTime asks a permission provider first.

The nodes

One per command:

ontime.command.add          ontime.command.audience     ontime.command.clone
ontime.command.command      ontime.command.condition    ontime.command.create
ontime.command.export       ontime.command.gui          ontime.command.help
ontime.command.hide         ontime.command.import       ontime.command.list
ontime.command.pause        ontime.command.position     ontime.command.remove
ontime.command.repeat       ontime.command.reset        ontime.command.scale
ontime.command.sequence     ontime.command.set          ontime.command.silent
ontime.command.sound        ontime.command.start        ontime.command.status
ontime.command.stop         ontime.command.title        ontime.command.trigger
ontime.command.webpanel

Wiring it up

OnTime does not depend on LuckPerms, or on any particular permission mod. It asks whatever provider is registered through the API:

OnTimeAPI.getInstance().setPermissionProvider((player, node) ->
        LuckPermsProvider.get()
                .getPlayerAdapter(ServerPlayer.class)
                .getPermissionData(player)
                .checkPermission(node)
                .asBoolean());

Put that in your own mod, or in a small glue mod. Once it is registered, a player holding ontime.command.start may run /timer start whatever their operator level.

What the provider is asked about

Players only. Command blocks, the server console, datapack functions and RCON are never passed to it — they may always use /timer.

That is deliberate: a permission provider answers questions about a person, and those four are not people. A command block asking "does this block hold ontime.command.start?" has no sensible answer, and making one up either breaks every map that uses command blocks or hands out a permission nobody granted.

Without a provider

Operator level 2, as vanilla intends. Nothing to configure.

Clone this wiki locally