Multiple Login 1 account.
#1
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..
Reply
Thanks given by:


Messages In This Thread
Multiple Login 1 account. - by ThuGie - 10-24-2012, 11:50 AM
RE: Multiple Login 1 account. - by Luksor - 10-24-2012, 04:32 PM



Users browsing this thread: 1 Guest(s)