I'm trying to make a command to the server based on a specific event occurring in game. I've looked all through the Oxide code, and I've yet to find anything to successfully hook into to make this happen. The specific problem I'm trying to solve is managing the player count automatically based on in-game events. Are there any methods that I can call to accomplish this? Thanks
Solved Calling server commands from a plugin
Discussion in 'Rust Development' started by *VIC, May 18, 2016.
-
Wulf Community Admin
Code:rust.RunServerCommand("command")
-
WOOOOOOH! Thank you sir! I was searching for hours last night trying to figure that out.
-
You can find other libraries here: Oxide/Oxide.Core/Libraries at master · OxideMod/Oxide · GitHub
and here: Oxide/Games/Unity/Oxide.Game.Rust/Libraries at master · OxideMod/Oxide · GitHub