Timed Permissions allows you to grant permissions or groups for a specific time.
Please consider donating to support me and help me put more time into my plugins. You can donate, by clicking here.
timedpermissions.use
-- Allows player to use most of the commandstimedpermissions.advanced
-- Allows player to use thetimedpermissions_resetaccess
&timedpermissions_ensureaccess
.
This plugin provides universal chat and console commands. When using a command in the chat, prefix it with a forward slash: /
revokeperm <player|steamid> <permission>
-- Revoke a timed permission from a playergrantperm <player|steamid> <permission> <time>
-- Give a player a permission for a specific timeremovegroup <player|steamid> <group>
-- Remove a timed group from a playeraddgroup <player|steamid> <group> <time>
-- Add a player to a group for a specific timepinfo [player|steamid]
-- Show active timed permissions and groups of a player (can be used by non-admins without specifiying a target player)
timedpermissions_resetaccess [yes]
-- Reset all access data stored in Timed Permissions and create a backup of that data. Needs to be confirmed by passingyes
as parameter.
These are placeholders used in the commands. They are to be replaced with a specific value when using a command.
<player|steamid>
-- the name or Steam ID (64) of the player you're trying to target[player|steamid]
-- [optional] the name or Steam ID (64) of the player you're trying to target<permission>
-- the name of the permission you want to grant/revoke<group>
-- the name of the group you want to add the player to/remove the player from<time>
-- the duration of the permission/group formatted like '1d12h30m'
Usage example:/grantperm LaserHydra timedpermissions.use 30d
gives LaserHydra the permissiontimedpermissions.use
for 30 days.- d = days
- h = hours
- m = minutes
[yes]
-- text 'yes' needs to be given to confirm action
{
"Wipe Data on New Save (Limited to Certain Games)": false
}
Wipe Data on New Save (Limited to Certain Games)
-- when set totrue
, automatically wipes the data
{
"Invalid Time Format": "Invalid Time Format: Ex: 1d12h30m | d = days, h = hours, m = minutes",
"No Permission": "You don't have permission to use this command.",
"Player Has No Info": "There is no info about this player.",
"Player Info": "Info about {player}: Groups: {groups} Permissions: {permissions}"
}
Called right before timed permission is granted. No return behaviour.
void OnTimedPermissionGranted(string Id, string permission, TimeSpan duration)
Called right before timed permission time is extended. No return behaviour.
void OnTimedPermissionExtended(string Id, string permission, TimeSpan duration)
Called right before the player is added to a group for a specific time. No return behaviour.
void OnTimedGroupAdded(string Id, string group, TimeSpan duration)
Called right before timed group time is extended. No return behaviour.
void OnTimedGroupExtended(string Id, string group, TimeSpan duration)