[CSM] Temporary Privilages CSM Port [tempprivs]

User avatar
ChimneySwift
Member
 
Posts: 320
Joined: Fri Sep 22, 2017 06:46
Location: 127.0.0.1
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift

[CSM] Temporary Privilages CSM Port [tempprivs]

by ChimneySwift » Fri Jul 20, 2018 01:03

Temp Privs
This is a quick and simple CSM port of my temp_privs server mod. There are some limitations, but it's useful for small to medium timeouts.

GitHub
Download

Usage
Temporarily grant privs:
.tgrant <name> <privs> <time>

Temporarily revoke privs:
.trevoke <name> <privs> <time>

Times
Each time is comprised of a number followed by a letter. The letter signifies a multiplyer to the number.

Available letters:
Code: Select all
| Letter | Time    |
|--------|---------|
| s      | seconds |
| m      | minutes |
| h      | hours   |
| D      | days    |
| W      | weeks   |
| M      | months  |
| Y      | years   |


Examples:

10s - 10 seconds
5m - 5 minutes
1h - 1 hour
5Y - 5 years

Limitations
Privilage string must not contain spaces (use only commas to separate)

If you are not online when the grant/revoke is set to revert, it will not revert until you log on again.
A spoon is basically a tiny bowl with a stick on it
 

User avatar
Lone_Wolf
Member
 
Posts: 2186
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: [CSM] Temporary Privilages CSM Port [tempprivs]

by Lone_Wolf » Wed Jul 25, 2018 15:16

Haha this is great. Now I need to get my computer to stay logged on to a server all day without overheating...
 

Christian_Soldier
Member
 
Posts: 158
Joined: Thu Feb 08, 2018 17:36
In-game: Christian_Soldier
 

User avatar
ChimneySwift
Member
 
Posts: 320
Joined: Fri Sep 22, 2017 06:46
Location: 127.0.0.1
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift

Re: [CSM] Temporary Privilages CSM Port [tempprivs]

by ChimneySwift » Wed Aug 22, 2018 02:42

viewtopic.php?f=53&t=17830

If you're trying to install on a server, use the server-side version:
viewtopic.php?f=9&t=19127
A spoon is basically a tiny bowl with a stick on it
 


Return to Client-side modding



Who is online

Users browsing this forum: No registered users and 1 guest