[Mod] Agree rules or kick V4 [agreerules]

User avatar
AiTechEye
Member
 
Posts: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye

[Mod] Agree rules or kick V4 [agreerules]

by AiTechEye » Wed Jun 03, 2015 13:56

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
(902.95 KiB) Not downloaded yet
Last edited by AiTechEye on Mon Dec 31, 2018 07:51, edited 23 times in total.
 

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

Re: [Mod] Agree rules or kick

by Krock » Wed Jun 03, 2015 16:44

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: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye
 

Sokomine
Member
 
Posts: 3952
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] Agree rules or kick

by Sokomine » Thu Jun 11, 2015 03:38

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: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye
 

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

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

by SegFault22 » Fri Aug 28, 2015 17:18

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: 5948
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Thu Nov 26, 2015 19:47

What's the license for this?

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

User avatar
AiTechEye
Member
 
Posts: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye

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

by AiTechEye » Fri Nov 27, 2015 08:50

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: 5948
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Fri Nov 27, 2015 12:23

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.
 

User avatar
AiTechEye
Member
 
Posts: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye

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

by AiTechEye » Fri Nov 27, 2015 13:23

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: 5948
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Fri Nov 27, 2015 14:38

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.
 

User avatar
AiTechEye
Member
 
Posts: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye
 

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

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

by Minetestforfun » Fri Nov 27, 2015 15:08

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: 518
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list
 

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

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

User avatar
AiTechEye
Member
 
Posts: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye
 

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

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

by ShadowNinja » Mon May 09, 2016 15:54

It looks like the "Ingles" button is for spanish, but in Spanish "Ingles" means "English". Did you mean to use "Español"?
The best way to contact me is usually IRC (InchraNet, freenode).
 

User avatar
AiTechEye
Member
 
Posts: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye
 

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

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

by KCoombes » Tue May 10, 2016 10:44

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: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye

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

by AiTechEye » Tue May 10, 2016 14:07

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: 233
Joined: Thu Jun 09, 2016 14:56

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

by Codesound » Thu Mar 02, 2017 17:34

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: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye

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

by AiTechEye » Thu Mar 02, 2017 21:24

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: 233
Joined: Thu Jun 09, 2016 14:56

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

by Codesound » Fri Mar 03, 2017 20:34

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: 747
Joined: Fri May 29, 2015 21:14
Location: ¯\_(ツ)_/¯
GitHub: AiTechEye

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

by AiTechEye » Fri Mar 03, 2017 20:41

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
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: Google [Bot] and 5 guests