Multiple Login 1 account. - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Discussion (https://forum.cuberite.org/forum-5.html) +--- Thread: Multiple Login 1 account. (/thread-599.html) |
Multiple Login 1 account. - ThuGie - 10-24-2012 Hey guys. I was testing my auth plugin. And was like well now i rename them to guest. So they can login once again! once the user has logged in aka running around as. ThuGhacK and [Guest] ThuGhacK. Atm for me kickuser doesnt but i added some test code. And noticed even without that i could login multiple times without even renaming. I even disabled my plugins! I could just login as ThuGhacK and then again as ThuGhacK server would not complain or anything not even a kick or error. Is this normal does vanilla do this as well ? If not could this be fixed ? people could login multiple times and do mass digging or flooding/cheating etc and just grief the world in a few seconds. Edit: Also if i return true or false for onlogin it changes nothing ? I would asume if i return false the user wouldnt be able to login or something. As handling this could be done by plugin no problem right ? function OnLogin(Client, ProtocolVersion, Username) local loopPlayers = function( Player ) if(Player:GetName() == Username) then Player:SendMessage( "Somebody just logged in under your name." ) return true end end local loopWorlds = function ( World ) World:ForEachPlayer( loopPlayers ) end cRoot:Get():ForEachWorld( loopWorlds ) return false end Now if only i could kick them :p. Btw does the shcode=lua highlite not work ? i get gray text.. Nm i need to refresh for it to work for some weird reason.. RE: Multiple Login 1 account. - Luksor - 10-24-2012 It's actually a feature: https://forum.cuberite.org/showthread.php?tid=446&pid=2931#pid2931 But maybe it's time to make it configurable or work only in debug mode? |