[CSM] Temporary Privilages CSM Port [tempprivs]

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

[CSM] Temporary Privilages CSM Port [tempprivs]

by ChimneySwift » Post

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: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

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

by Lone_Wolf » Post

Haha this is great. Now I need to get my computer to stay logged on to a server all day without overheating...
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

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

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

by Christian_Soldier » Post

how do i install the mod?
plz see my map from The Stanley Parable. viewtopic.php?f=12&t=19944&p=0&e=0

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

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

by ChimneySwift » Post

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests