Hello! So i'm new to Oxide modding and would like to grasp the basic concept of how it works to start working on my own fancy mods. so here I go...
Any reason why this is not working at all?
In-game tryping "/testme " results in "unknown command 'testme'!"Code:using System.Collections.Generic; using System; using System.Reflection; using System.Data;using UnityEngine;using Oxide.Core; using Oxide.Core.Configuration; using Oxide.Core.Plugins;using Oxide.Rust;namespace Oxide.Plugins { [Info("Testing Rust fuctionality", "Zuen Studio", "1.0.0")] public class TestingFunctions : RustPlugin { [ChatCommand("testme")] void TestMecc(BasePlayer player, string command, string[] args) { MessageAllPlayers("Hello"); } } }
Solved Starting out with C# plugins, import issue?
Discussion in 'Rust Development' started by Zuen, May 21, 2015.
-
Wulf Community Admin
Check your logs for errors, that will generally point you in the right direction. From initial glance, you are importing things that you both do not need, and that do not exist, Oxide.Rust being one of those.
-
Derp easy enough fix Thanks!... the using statements was me going mad for it not working initially. So i'm using VS2012 and I added my references but i still don't have the required reference for BasePlayer ... what dll would that be located in exactly?
-
Wulf Community Admin
-
I must say that the solutions to my problems are so simple I feel really stupid to not see them. Thanks.
-
Wulf Community Admin
-
okay so I got the thing pretty much figured out to a point but ... What is the best approach to check what current belt item the player is holding in his hand if he is holding one?
-
Wulf Community Admin