02-25-2011, 04:53 AM
Hi everybody , is it possible to make a plugin who player can use a password to stay connected with his Nickname ? ( possibly not in mysql :p plz )
(02-25-2011, 06:05 AM)Jockie Wrote: [ -> ]Nope, because it's not possible to kick a player.. yet. oO
(02-26-2011, 12:17 AM)Jockie Wrote: [ -> ]Well, I can, but it's not possible to disallow a player that connects.. yet.. (I hope)Yes it is
(02-26-2011, 12:17 AM)Jockie Wrote: [ -> ]Player:BanPlayer/Player:KickPlayer should be installed. :pYes it should, lol. Better make this my top priority then.
(02-26-2011, 12:17 AM)Jockie Wrote: [ -> ]EDIT: Btw.. If you want it non-MySQL, it would be usefull to install a word compiler, like MD5, else you could see everyone's pass.I already have a md5 hasher for MCServer, just not exposed to Lua yet. I don't see why you'd need an XML parser though, you could use the ini files.
LUA doesn't normally have MD5 installed.
But you should also need then a XML parser... For saving on a save way. :/
[1]
name=Jockie
pass=thisisnotarealpassword
[2]
name=AnotherRegisteredPlayer
pass=IDontKnow
(02-26-2011, 09:27 PM)Jockie Wrote: [ -> ]Hm.. So it would look like this by then? oOYou even can access the user.ini from MCServer and add a password by plugin.
Code:[1]
name=Jockie
pass=thisisnotarealpassword
[2]
name=AnotherRegisteredPlayer
pass=IDontKnow
Also possible. :p
[AuthenticationPlugin]
Username=Password
User1=mypassword
Jockie=12345
etc=etc
(02-26-2011, 09:59 AM)FakeTruth Wrote: [ -> ](02-26-2011, 12:17 AM)Jockie Wrote: [ -> ]Well, I can, but it's not possible to disallow a player that connects.. yet.. (I hope)Yes it is
Use the E_PLUGIN_LOGIN hook and the OnLogin( cPacket_Login ) function. Return true to kick the player.