Page 1 of 1

ManiaControl Special Welcome bot :)

Posted: 07 Jul 2014, 22:15
by toffe
Hello,
Made in one evening :clap:, a plugin that welcomes every player, moderator, admin and master admin with a special message. You can change the messages.
You can set 2 messages for every mod, admin and masteradmin and 4 for the player. It will pick one random one. If you need more, let me know
Plugin special info: http://www.maniacontrol.com/plugins/58

Please let me know if you like it and if you got some ideas for it.

Thanks, and have fun,
Toffe

Re: ManiaControl Special Welcome bot thing :)

Posted: 07 Jul 2014, 23:50
by toffe
kremsy wrote:I looked a bit in the code and it looks very well Programmed ;).
Thanks :D
kremsy wrote:

Code: Select all

for ($i=0; $i < 1; $i++) { 
This doesn't make any sence I guess, it just loops only through 1 element.
It's preparing for maybe more welcome strings. Maybe ^^. I agree that for now it's a bit too enthousiast :P.
kremsy wrote: Another thing are the constants for the auth Level instead of:

Code: Select all

case 0:
case 1:
You could use the defined constants I think in AuthenticationManager (AuthenticationManager::SuperAdmin...)
Indeed, will be better. Going to change it. Thanks :).

Re: ManiaControl Special Welcome bot :)

Posted: 08 Jul 2014, 16:18
by steeffeen
a minor thing: please check the DEV_MODE :)
http://forum.maniaplanet.com/viewtopic. ... 58#p216783

Re: ManiaControl Special Welcome bot :)

Posted: 08 Jul 2014, 17:33
by toffe
Indeed, loop has been changed now. And I added brackets. (Version 1.2)
I have plans on making it more dynamic later.

Thanks
Toffe