Author Topic: Finding the host  (Read 2011 times)

**hosts name won't appear in ServerInfo until you spawn**
Code: [Select]
%host = getWord($ServerInfo::Name, 0);
%host = getSubStr(%host, 0, strLen(%host) - 3); //the three \'s characters

getWord($ServerInfo::Name, 0);?

Names can have spaces, the \ doesn't actually count as a character, and the s can be behind the ', as part of the name.

getWord($ServerInfo::Name, 0);?

Names can have spaces, the \ doesn't actually count as a character, and the s can be behind the ', as part of the name.
Good point, but what about the name not being there until you spawn?

That could actually be useful.

Compare the server's name from when it didn't have the name of the owner to when it did.

$pref::Player::NetName is loaded in both dedicated and normal blockland modes.

This is exactly what I wanted. Everyone is over complicating it XD

Nope, everyone thought you wanted to do it client-sidedly.

Nope, everyone thought you wanted to do it client-sidedly.
I mayy have forgotten to close this topic...

Unlocked due to several messages requesting that I leave them open

Unlocked due to several messages requesting that I leave them open
You should always leave them unlocked