I am not sure what most of these are for i only came across these hooks to see if i could go no steam on oxide doesn't support cracked servers so i wont post method here. but here are some of the hurtworld command and methods of implementation
there is a few more visit Console manager for the few i left out Hurt world has so much commands, i got tired of copy and pasting lol , i also left out some of the methods of implementing server side as i said just visit console manager from assembly-csharp for the rest.
combatlogtimeout Default is 30 How to use in server Plugin Side: Singleton<GameManager>.Instance.ServerConfig.CombatLogTimeout = 1f for example
expandpools
addadmin
Singleton<GameManager>.Instance.SetAdmin(new CSteamID(Convert.ToUInt64(rawCAnonStoreyC9.splitList[1])));
monitorloadbalancer
Singleton<LoadBalancer>.Instance.MonitorPerformance = rawCAnonStoreyC9.splitList[1] == "1";
bindip
Singleton<GameManager>.Instance.ServerConfig.BoundIP = rawCAnonStoreyC9.splitList[1];
dumploadbalancer
Singleton<LoadBalancer>.Instance.Dump());
ban
Singleton<BanManager>.Instance.AddBan(num);
Singleton<GameManager>.Instance.KickPlayer(num.ToString(), "Banned from server");
Singleton<ChatManagerServer>.Instance.AppendNoticeAll("Player Banned", Color.red);
unban
Singleton<BanManager>.Instance.RemoveBan(Convert.ToUInt64(rawCAnonStoreyC9.splitList[1])))
stakedeauthtime
Singleton<GameManager>.Instance.ServerConfig.StakeDeauthTime = 1f
vehicledecaytime
Singleton<GameManager>.Instance.ServerConfig.VehicleDecayTime = 1f for example
VehicleStatManager.VehicleDecayTimeSet = true;
testhost
Singleton<GameManager>.Instance.Host(12871, (string) null, "zonetest");
wipeinterval
Singleton<GameManager>.Instance.ServerConfig.WipeInterval = 1
Singleton<GameManager>.Instance.InvalidateServerConfig();
autowipe
Singleton<GameManager>.Instance.ServerConfig.AutoWipe = true/false
adminmessage
Singleton<ChatManagerServer>.Instance.AppendNoticeAll(pCommand.Substring(13), Color.red);
host
stockvehicles
maxping
Singleton<GameManager>.Instance.ServerConfig.MaxPing) = 1
spawnercellupdatesperframe
Singleton<GameManager>.Instance.ServerConfig.SpawnerCellUpdatesPerFrame = 1
warmshaders
Shader.WarmupAllShaders();
chatspambudget
Singleton<GameManager>.Instance.ServerConfig.ChatSpamBudget 1f for example
chatconnectionmessagesenabled
Singleton<GameManager>.Instance.ServerConfig.ChatConnectionMessagesEnabled = true/false
chatdeathmessagesenabled
Singleton<GameManager>.Instance.ServerConfig.ChatDeathMessagesEnabled true/false
mute
Singleton<ChatManagerServer>.Instance.Mute(ulong.Parse(player id, time));
unmute
Singleton<ChatManagerServer>.Instance.Unmute(playerid);
cancelquit
Singleton<GameManager>.Instance.CancelQuit();
creativemode
ConstructionItem.CreativeMode = false;
changelevel
Singleton<GameManager>.Instance.ChangeLevel(rawCAnonStoreyC9.splitList[1]);
teleport
Singleton<GameManager>.Instance.RPC("TeleportPlayer", uLink.RPCMode.Server, (object) str2, (object) str3);
destroyall partialname
spawn
Singleton<NetworkManager>.Instance.SpawnPrefabClient(rawCAnonStoreyC9.splitList[1]);
[DOUBLEPOST=1457728025][/DOUBLEPOST]be caurefull with some of these on your server's cause i think some may cause it to force make an emergency restart like the spawn command
Solved Executing server and client commands
Discussion in 'Hurtworld Discussion' started by copper, Mar 11, 2016.
-
Wulf Community Admin
You don't need to run the functions directly, you can simply call the command using Oxide's API.
-
-
Wulf Community Admin
Oxide/HurtworldServer.cs at master · OxideMod/Oxide · GitHub