Mod request - forced rule reading

User avatar
Tedypig
Member
 
Posts: 284
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear

Mod request - forced rule reading

by Tedypig » Tue Jun 03, 2014 15:39

I have a request that forces your players to read the rules. It should be simple for people that know Lua, unfortunately I'm not one of those people... It would go like this -
-1- A MOTD says "Please read /rules" This would display once register_on_newplayer(or whatever..)

-2- A formspec shows up that displays the rules ~/minetest/worlds/<worldname>/rules.txt (each rule is a separate line in rules.txt), and each rule has its own page. (page 1 = intro, page 2 = rule 1, page 3 = rule 2, etc., second to last page = Failure to stick to these rules can and will result in a permanent ban, last page = "Please type "agree.....") Or however each server owner sets up rules.txt.

-3- On the last page of the rules formspec, it says "Type "agree" in the box below" and below that, there's an input box.

-4- After the user types "agree" in the box, they get granted interact automatically when the formspec closes.

EDIT: Typos, typos everywhere...
EDIT2: I just realized that this is general discussion, not modding general, please feel free to move it there.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Mod request - forced rule reading

by rubenwardy » Tue Jun 03, 2014 16:31

Not released on the forums yet AFAIK:

https://github.com/ChaosWormz/mt_terms_of_use
 

User avatar
Tedypig
Member
 
Posts: 284
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear

Re: Mod request - forced rule reading

by Tedypig » Tue Jun 03, 2014 20:32

Thank you good sir. It works like a charm... Now that I've changed almost all of the rules. Lol.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 6 guests

cron