Remove Permission

🚫 /removeracepermission

📌 Description

The /removeracepermission command allows admins to remove a player’s ability to create races or tracks in the racing system.

This is useful if a player no longer needs race/track creation permissions or if they were mistakenly granted access.


⚡ Syntax

/removeracepermission [playerId] [permission]

📝 Parameters

Parameter
Type
Description

playerId

number

The in-game server ID of the player whose permission you want to remove

permission

string

The permission type: race (race creation) or track (track creation)


✅ Examples

  1. Remove race creation permission from player with ID 12:

/removeracepermission 12 race
  1. Remove track creation permission from player with ID 45:

/removeracepermission 45 track

🔒 Permissions

  • Restricted to admins only (group.admin).

  • Players without admin rights cannot use this command.


⚙️ Behavior

  • If the player is not found, an error notification is shown.

  • If the player is not registered in the racing system, an error is shown.

  • If the permission argument is invalid, the command will notify:

    Invalid permission type! Use race or track.
  • On success, a notification is sent to the admin confirming that the permission was removed

Last updated