[Mod] Agree rules or kick V4 [agreerules]

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

[Mod] Agree rules or kick V4 [agreerules]

by AiTechEye » Post

Image

License: LGPL-2.1
Depends: none
Source
Download


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 appear on players that joins without interact

Type /rules 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)
Attachments
screenshot_20170817_131947.png
screenshot_20170817_131947.png (902.95 KiB) Viewed 1823 times
Last edited by AiTechEye on Mon Dec 31, 2018 07:51, edited 23 times in total.

User avatar
Krock
Developer
Posts: 4649
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Agree rules or kick

by Krock » Post

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?".
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: [Mod] Agree rules or kick

by AiTechEye » Post

its fixed

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Agree rules or kick

by Sokomine » Post

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.
A list of my mods can be found here.

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

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

by AiTechEye » Post

Upaded to V2

User avatar
SegFault22
Member
Posts: 872
Joined: Mon May 21, 2012 03:17
Location: NaN

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

by SegFault22 » Post

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.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

What's the license for this?

Please also change your topic's title to contain [agreerules]
eg: [Mod] Agree rules or kick [V2] [agreerules]
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

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

by AiTechEye » Post

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 ...
Last edited by AiTechEye on Fri Nov 27, 2015 13:23, edited 1 time in total.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

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

by AiTechEye » Post

Licenses for all mods created by me is changed
Last edited by AiTechEye on Sat Nov 28, 2015 13:04, edited 2 times in total.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

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

by AiTechEye » Post

Done
Last edited by AiTechEye on Sat Nov 28, 2015 13:05, edited 2 times in total.

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

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

by Minetestforfun » Post

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 :)

User avatar
prof-turbo
Member
Posts: 516
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list

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

by prof-turbo » Post

Looks nice and easy to use !
Thumbs up !

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

This mod is still proprietary. I give up, I'll make my own verson.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

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

by Minetestforfun » Post

Have a look at MFF version https://github.com/MinetestForFun/serve ... s/interact WTFPL licenced (base + the improvements)

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

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

by AiTechEye » Post

Added languages (a wish by ulla :-)

User avatar
ShadowNinja
Developer
Posts: 200
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

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

by ShadowNinja » Post

It looks like the "Ingles" button is for spanish, but in Spanish "Ingles" means "English". Did you mean to use "Español"?

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

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

by AiTechEye » Post

i have not seen that, fixed!

KCoombes
Member
Posts: 427
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt
Location: SW Florida, USA

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

by KCoombes » Post

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?

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

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

by AiTechEye » Post

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 :-)

User avatar
Codesound
Member
Posts: 365
Joined: Thu Jun 09, 2016 14:56

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

by Codesound » Post

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

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

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

by AiTechEye » Post

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 ...

User avatar
Codesound
Member
Posts: 365
Joined: Thu Jun 09, 2016 14:56

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

by Codesound » Post

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

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

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

by AiTechEye » Post

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

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests