[mod] Prevent new accounts from joining [nonew]

Post Reply
User avatar
taikedz
Member
Posts: 698
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake
Location: Scotland, UK
Contact:

[mod] Prevent new accounts from joining [nonew]

by taikedz » Post

NoNew - a mod to prevent new players from joining a server

Sometimes you need to lock down a server to existing members, tempoarily or permanently - the reasons are yours, and you know best.

NoNew allows just that. Activate the mod in your world.mt and start the server, it is active. From thereon out, when a new player attempts to connect, they are prevented from joining.

Once active you can also mark some previously joined users as "new" - they will be denied access as being "new" players when they try to join. Once you lift the NoNew restriction, they will be allowed to join again.

Code: Select all

/nn_block newGuy newGal someoneElse

-- or individually unblock players :

/nn_unblock newGal
Therefore, this is not a ban manager.

In-game, you can turn off NoNew with

Code: Select all

/nn_state off
to allow all players to join once again (players banned using a ban manager are not affected, and remain banned).

License: GNU Lesser General Public License version 3.0
Dependencies: none

Github: https://github.com/taikedz-mt/nonew
Download: https://github.com/taikedz-mt/nonew/archive/master.zip
Last edited by taikedz on Fri Jul 20, 2018 09:11, edited 2 times in total.

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [mod] Prevent new accounts from joining [nonew]

by sofar » Post

Seems simple and universally usable enough. Have you considered putting this mod in `minetest-mods`? This seems like the typically basic utility mod that lots of people may want to use, and help maintain.

BTW, please add your license (GPL-3.0) and dependencies (none) to the topic so this can be moved to mod releases.

User avatar
taikedz
Member
Posts: 698
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake
Location: Scotland, UK
Contact:

Re: [mod] Prevent new accounts from joining [nonew]

by taikedz » Post

Thanks sofar

Adjusted ; also updated the license to LGPLv3 as of tag 1.0

User avatar
AlexYst
Member
Posts: 109
Joined: Fri Mar 20, 2015 01:24
GitHub: y-st
IRC: AlexYst
In-game: AlexYst
Contact:

Re: [mod] Prevent new accounts from joining [nonew]

by AlexYst » Post

Nice mod! I hadn't considered doing this with a mod; I'd thought of setting a default password that no one knows, but that's hacky. Your mod does this in a much cleaner way.

User avatar
shivajiva
Member
Posts: 32
Joined: Fri Nov 27, 2015 09:41
In-game: shivajiva

Re: [mod] Prevent new accounts from joining [nonew]

by shivajiva » Post


sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [mod] Prevent new accounts from joining [nonew]

by sofar » Post

Does this support DACA? What about illegals who are already in the border?

User avatar
shivajiva
Member
Posts: 32
Joined: Fri Nov 27, 2015 09:41
In-game: shivajiva

Re: [mod] Prevent new accounts from joining [nonew]

by shivajiva » Post

I can assure everyone I haven't made anybody pay for the border or raised it through taxes, it's formed from virtual sweat and bag loads of hot air, released and collected from a single individual, in line with Obama's policies it supports DACA but that is deferred to the individual server owners stance.

Illegal immigrants may have infiltrated the homeland so speak to your local Walmart store manager about it and make sure to have a tyrannical grip of virtual reality. Tweeting churlish thoughts to the horde is highly recommended to retain an overbearing presence as is revocation of security clearance if you don't like the cut of their jib.

User avatar
Laser0073
Member
Posts: 59
Joined: Fri Jun 03, 2016 01:26
GitHub: Laser0073
In-game: Laser0073

Re: [mod] Prevent new accounts from joining [nonew]

by Laser0073 » Post

Wow this is a great mod. Exactly what I wanted :D
i5 6500 OC @3.5GHz, EVGA GTX 960 4GB, 8GB DDR4, ASROCK Pro4S, 128GB.SSD, MT 0.4.17, Linux Mint 18.3 (Ubuntu 16.04)
OwOOOg9CphnceB30eUFX6BOCW8W3jT4i

User avatar
sorcerykid
Member
Posts: 1841
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

Re: [mod] Prevent new accounts from joining [nonew]

by sorcerykid » Post

Cool mod :) Just wanted to mention that locking out new accounts is also possible with auth_rx: when $is_new eq $true fail

Here's some rulesets based on date, time, or day of the week.

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests