mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
mud diagnostics and user info
This commit is contained in:
parent
02fd7a883b
commit
ea430ac9df
1 changed files with 29 additions and 0 deletions
|
@ -354,6 +354,35 @@ end");
|
|||
}
|
||||
}
|
||||
|
||||
[Exposed("mud")]
|
||||
public class MUDFunctions
|
||||
{
|
||||
public void sendDiagnostic(string src, string cat, object val)
|
||||
{
|
||||
ServerManager.SendMessage("diag_log", $"[{src}] <{cat}>: {val}");
|
||||
}
|
||||
}
|
||||
|
||||
[Exposed("userinfo")]
|
||||
public class UserInfoFunctions
|
||||
{
|
||||
public string getUsername()
|
||||
{
|
||||
return SaveSystem.CurrentSave.Username;
|
||||
}
|
||||
|
||||
public string getSysname()
|
||||
{
|
||||
return SaveSystem.CurrentSave.SystemName;
|
||||
}
|
||||
|
||||
public string getEmail()
|
||||
{
|
||||
return getUsername() + "@" + getSysname();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Exposed("infobox")]
|
||||
public class InfoboxFunctions
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue