Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-11-02 19:33:54

drunkbnu
Formerly HG
Joined: 2017-08-16
Posts: 2,306

[QUESTION] How to gather your username without joining a world

I am creating a bot which has a login form. If they log in successfully, then the main form will appear.

The main form has a "Welcome, <username>" label, where <username> has to be replaced with the player's respective EE username.

How am I able to get this username from the server?

Offline

#2 2016-11-02 19:57:44

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [QUESTION] How to gather your username without joining a world

client.BigDb.Load("PlayerObjects", client.ConnectUserId)["name"]

Offline

#3 2016-11-02 21:23:48

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [QUESTION] How to gather your username without joining a world

hummerz5 wrote:
client.BigDb.Load("PlayerObjects", client.ConnectUserId)["name"]

That way is going to be removed some day. So I would suggest to use:

client.BigDB.LoadMyPlayerObject()["name"]

Offline

Wooted by:
capasha1478118228632778

Board footer

Powered by FluxBB

[ Started around 1732731116.7916 - Generated in 0.029 seconds, 12 queries executed - Memory usage: 1.37 MiB (Peak: 1.48 MiB) ]