Permissions
OmniSight uses a flexible permission system controlled by the permissionMode field in config.json.
Permission Modes
| Mode | Behavior |
|---|---|
"none" | No restrictions. All players can use all commands. (default) |
"op" | Only server operators can use OmniSight commands |
"custom" | Uses Hytale's PermissionsModule for per-node permission checks |
Permission Nodes
| Node | Required For | Description |
|---|---|---|
omnisight.use | /omni on, /omni off | Basic HUD toggle access |
omnisight.settings | /omni settings | Access to the settings GUI |
omnisight.profiler | /omni profiler | Access to the performance profiler |
How Each Mode Works
"none" (default)
All players have unrestricted access to all OmniSight commands. No permission checks are performed.
{
"permissionMode": "none"
}
"op"
Only operators can use OmniSight. Since Hytale 0.6 the operator group is hytale:Admin; OmniSight checks for the root permission (*) that this group grants, so it also works with permission plugins such as LuckPerms whose admin groups have other names.
{
"permissionMode": "op"
}
"custom"
Each command checks its specific permission node against Hytale's PermissionsModule. This allows granular control, for example: all players can toggle the HUD (omnisight.use) but only admins can open the profiler (omnisight.profiler).
{
"permissionMode": "custom"
}
To assign permissions in custom mode, use Hytale's built-in permission system (or your permission plugin) to grant nodes to players or groups.
Permission Check Flow
- Player runs
/omni <subcommand> - The subcommand's node is checked (
omnisight.use,omnisight.settingsoromnisight.profiler) - If the check fails, the player sees:
[Omnisight] No permission.
/omni on its own (the help message) is always available.
Migration from requiresOp
If config.json still contains legacy requiresOp:
requiresOp: trueis automatically converted topermissionMode: "op"requiresOp: falseis ignored (currentpermissionModeis kept)requiresOpis removed from the file
No manual action is needed. Migration happens automatically on server start.