Page 1 of 1

[Mod] Agree rules or kick V3 [agreerules]

PostPosted: Wed Jun 03, 2015 13:56
by AiTechEye
Now you can skip the cage for new players!

A tiny mod that requires players agree your rules, or be kicked. Yes or No

you can select between to just perss Yes, or to type i agree to the rules (as default)

You can change this in the init.lua file "Enable_type_text_to_accept= true / false"

It check if players have interact on join or this coming up.
Type[ b]/rules[/b] to show the form

Add rules / privs to grant in the init.lua file, shout interact & home is default

english, spanish, french, german translations
change default language or if you want all 4 or only 1 language
Enable_Only_1_language= false
Default_language_number= 1

Blame google translate if the grammatical or spelling is wrong,(I only talking english or swedish)

Licenses: code LGPL 2.1 media CC BY-SA 3.0
Depends: none

Image

Re: [Mod] Agree rules or kick

PostPosted: Wed Jun 03, 2015 16:44
by Krock
My english teacher always told me to write complete sentences.
However, you definitely need a label with the question "Do you accept the server rules?".

Re: [Mod] Agree rules or kick

PostPosted: Wed Jun 03, 2015 21:01
by AiTechEye
its fixed

Re: [Mod] Agree rules or kick

PostPosted: Thu Jun 11, 2015 03:38
by Sokomine
The mod might be very useful for servers. The only trouble is that people who are incapable of actually understanding the rules may be able to locate the "Yes" button and press it. It has happened often enough that players - when asked what the rules are - told that they where unable to read them due to not understanding the languange they where written on a particular server. Thus, it is only a little help, but certainly better than nothing. The greeting message is certainly fine! Real new players might not even know about interact. That gets handled well.

Re: [Mod] Agree rules or kick (V2)

PostPosted: Fri Aug 21, 2015 08:44
by AiTechEye
Upaded to V2

Re: [Mod] Agree rules or kick (V2)

PostPosted: Fri Aug 28, 2015 17:18
by SegFault22
This mod will be very useful for servers where players accepting the rules are given the ability to interact with the environment - such as "regular" servers (where players build their homes cooperating with the community, and griefing is not allowed), creative servers (where players are in creative mode and can build or modify anything they desire without needing tools), faction servers (where players make factions and can only protect a chunk of land if their faction has enough power, which is lost when a member dies), and other servers where rules are necessary (except for chaos/griefing servers, where nobody makes the rules and you "decide your own fate").
I will use this for my server, if I ever get around to being able to host it on a stable machine.

Re: [Mod] Agree rules or kick (V2)

PostPosted: Thu Nov 26, 2015 19:47
by rubenwardy
What's the license for this?

Please also change your topic's title to contain [agreerules]
eg: [Mod] Agree rules or kick [V2] [agreerules]

Re: [Mod] Agree rules or kick [agreerules] (V2)

PostPosted: Fri Nov 27, 2015 08:50
by AiTechEye
Unless nuthing else noted, this is that applies to all the mods I publishing

1: Use the mod in public servers
2: Take a parts of the code (if needed)
3: Edit the mod

I forgot to add licens to the older mods, I dont want to download --> edit --> reupload all the other 12 mods ...

Re: [Mod] Agree rules or kick V2 [agreerules]

PostPosted: Fri Nov 27, 2015 12:23
by rubenwardy
That sounds like an no-derivitives license, which you're not allowed to post mods under here. I suggest using WTFPL, MIT, or LGPL or later. You can't legally modify the rules or privs with a nd licence. I've made improvements to the mod, which it appears I'm not allowed to do.

Re: [Mod] Agree rules or kick V2 [agreerules]

PostPosted: Fri Nov 27, 2015 13:23
by AiTechEye
Licenses for all mods created by me is changed

Re: [Mod] Agree rules or kick V2 [agreerules]

PostPosted: Fri Nov 27, 2015 14:38
by rubenwardy
A license such as LGPL, BSD, or MIT require you to keep copyright notices on the file. CC-BY requires attribution, but it's unclear where the credit has to be. I think forum posts and read mes are enough. But cc bywasnt really designed for code.

This would literally take me 15-30m to make. Most of that time on making the formspec look nice. But I didn't, because it saves me time. But I will have to do that if this isn't foss.

Re: [Mod] Agree rules or kick V2 [agreerules]

PostPosted: Fri Nov 27, 2015 15:04
by AiTechEye
Done

Re: [Mod] Agree rules or kick V2 [agreerules]

PostPosted: Fri Nov 27, 2015 15:08
by Minetestforfun
Great work

In MinetestForFun servers we use a mod based on the "interact" mod to do this kind of things, we really impoved the initial "interact" mod.

If you want to take some ideas/codes https://github.com/MinetestForFun/serve ... s/interact :)

Re: [Mod] Agree rules or kick V2 [agreerules]

PostPosted: Sat Nov 28, 2015 11:04
by prof-turbo
Looks nice and easy to use !
Thumbs up !

Re: [Mod] Agree rules or kick V2 [agreerules]

PostPosted: Sat Jan 02, 2016 21:18
by rubenwardy
This mod is still proprietary. I give up, I'll make my own verson.

Re: [Mod] Agree rules or kick V2 [agreerules]

PostPosted: Fri Jan 08, 2016 10:12
by Minetestforfun
Have a look at MFF version https://github.com/MinetestForFun/serve ... s/interact WTFPL licenced (base + the improvements)

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Wed Feb 10, 2016 16:10
by AiTechEye
Added languages (a wish by ulla :-)

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Mon May 09, 2016 15:54
by ShadowNinja
It looks like the "Ingles" button is for spanish, but in Spanish "Ingles" means "English". Did you mean to use "EspaƱol"?

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Mon May 09, 2016 17:28
by AiTechEye
i have not seen that, fixed!

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Tue May 10, 2016 10:44
by KCoombes
UjEdwin wrote:Now you can skip the cage for new players!

A tiny mod that requires players agree your rules, or be kicked. Yes or No
(snip)

english, spanish, french, german translations
(snip)

Blame google translate if the grammatical or spelling is wrong,(I only talking english or swedish)


Is there a reason your own Swedish translation wasn't included?

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Tue May 10, 2016 14:07
by AiTechEye
the idea was to add the 4 biggest languages to make it easyer for more users, but if you think it should be added then i will do it :-)

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Thu Mar 02, 2017 17:34
by Codesound
Minetest 0.4.15, ByUjEdwinV3-1-agreerules, Win 7 x32 [server]

Hi,

I downloaded, unzipped and placed in the correct path, enabled on my server/level, this mod, but doesn't appear anything on screen... what I wrong?

thanks again for all...

R

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Thu Mar 02, 2017 21:24
by AiTechEye
The mod checks, if players that joins have interact.
so if a player not have interact, will the form show up.

change players starting privs in minetest.conf, with the line default_privs = interact, shout, home ...

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Fri Mar 03, 2017 20:34
by Codesound
Hi,

many thanks for your suggestions.... but anything is changed....

I added to minetest.conf the line default_privs = interact, shout, home
and tried to enter with another username, but anything is changed....

I did not understand what I should do ...

R

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Fri Mar 03, 2017 20:41
by AiTechEye
remove the "interact", like

default_privs is the privs that will be automatically granted to new players,and to make the mod work, you need to make the new players don't automatically get interact,

so use default_privs = shout, home

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Sat Mar 04, 2017 17:09
by Codesound
Hi,

many and many thanks for this mod and for your support!

I changed the "German" language to "Italian" and set this default language ..... works!

One another question: the new users receive the 'interact' priv via moderator, like '\grant user interact' .... is correct?

thanks again!

R

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Sat Mar 04, 2017 22:48
by AiTechEye
yeah:
/grant <name> <priv>

/grant Player0211 interact

remove privs:
/revoke <name> <priv>

http://wiki.minetest.net/Privileges

Re: [Mod] Agree rules or kick V3 [agreerules]

PostPosted: Mon Mar 06, 2017 07:33
by Codesound
Many and many thanks again! (also for your support!)

Beautiful mod!
5/5

R