Mythruna

Modder's Workbench => Scripting => Topic started by: GaraQuor on October 30, 2012, 04:42:18 PM



Title: withe-list-System V0.1 by Gara
Post by: GaraQuor on October 30, 2012, 04:42:18 PM
Helloo

Now, I have developed a white-list system.
I do not have to do any tutorial for that, well I think :)

Commands:
-"~addplayer" For add a player to the whitelist (not the login, the name of the player in games) Ex:"~addplayer test"

-"~removeplayer" For remove a player to the whitelist (not the login, the name of the player in games) Ex:"~removeplayer vince"

the file whitelist.txt is in the scripts folder :) (you can directly edit, with a text editor :) )

the download link is http://www.mythruna-france.tk/download/withe-list.init.groovy.php (http://www.mythruna-france.tk/download/withe-list.init.groovy.php) :)


Title: Re: withe-list-System V0.1 by Gara
Post by: SirLupin on October 30, 2012, 05:10:44 PM
Yeah !!


Title: Re: withe-list-System V0.1 by Gara
Post by: pspeed on October 30, 2012, 05:53:10 PM
What is the whitelist for exactly?  I'm just curious.


Title: Re: withe-list-System V0.1 by Gara
Post by: Thanos on October 30, 2012, 06:04:28 PM
What is the whitelist for exactly?  I'm just curious.
whitelisted players are allowed to join the server whereas non-whitelisted are not i guess...bukkit servers use whitelists, It may come in handy sometimes when you need to update the server or make an event and you want to allow only certain vip people to have early access on it.
I haven't tested Gara's script but i think its the same logic


Title: Re: withe-list-System V0.1 by Gara
Post by: belgariad87 on October 30, 2012, 07:55:36 PM
Sounds fairly well thought out.


Title: Re: withe-list-System V0.1 by Gara
Post by: pspeed on October 30, 2012, 08:21:54 PM
Cool... looks very similar to my ipban script but more specific (obviously).


Title: Re: withe-list-System V0.1 by Gara
Post by: pspeed on October 30, 2012, 10:08:18 PM
It occurs to me that with the appropriate caveats, we could probably setup a wiki master page for mods with sub-pages for the specific mods.  At least until the "mythruna store" is made some day.

I have the wiki so locked down that I'm not even sure how to let people have accounts anymore. :)


Title: Re: withe-list-System V0.1 by Gara
Post by: GaraQuor on October 31, 2012, 01:14:10 AM
yes, the script is similar to the idea of ip-ban.
but ip-ban use the ip of the player
withe-list use the name (ingame) of the player

in fact I intend to open a server, but it will make a request to go in the server (on the forum) and the ip for this is not very useful ^ ^


Title: Re: withe-list-System V0.1 by Gara
Post by: pspeed on October 31, 2012, 11:24:19 AM
yes, the script is similar to the idea of ip-ban.
but ip-ban use the ip of the player
withe-list use the name (ingame) of the player

in fact I intend to open a server, but it will make a request to go in the server (on the forum) and the ip for this is not very useful ^ ^

Yeah, I understand the difference.  The code is very similar.

I couldn't remember if I posted the IP-ban stuff or if I include it by default.  I didn't know if you used it for inspiration or just happened to come up with very similar on your own.


Title: Re: withe-list-System V0.1 by Gara
Post by: GaraQuor on November 01, 2012, 11:48:05 AM
I was inspired, but only 2-3 line of the code, example to disconnect the player.


Title: Re: withe-list-System V0.1 by Gara
Post by: Moonkey on November 02, 2012, 03:45:07 PM
I was inspired, but only 2-3 line of the code, example to disconnect the player.
That reminds me. Do you have a server up? Or do you want to have one up later?


Title: Re: withe-list-System V0.1 by Gara
Post by: GaraQuor on November 03, 2012, 04:31:35 AM
I have already but it is not yet ready


Title: Re: white-list-System V0.1 by Gara
Post by: Sean on November 03, 2012, 08:45:53 AM
Cool! Using IP-ban and the white list plugin together could really improve the security.