Page 1 of 1

Mod request - forced rule reading

PostPosted: Tue Jun 03, 2014 15:39
by Tedypig
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.

Re: Mod request - forced rule reading

PostPosted: Tue Jun 03, 2014 16:31
by rubenwardy
Not released on the forums yet AFAIK:

https://github.com/ChaosWormz/mt_terms_of_use

Re: Mod request - forced rule reading

PostPosted: Tue Jun 03, 2014 20:32
by Tedypig
Thank you good sir. It works like a charm... Now that I've changed almost all of the rules. Lol.