pls where can I see the guides on the development of plugins? not here Oxide API Reference
where i see about this? as example
using System.Collections.Generic;
using Newtonsoft.Json;
using System.Collections;
using System;
using UnityEngine;
commands of thist extensions?
work with chat? save of configuration? etc.
I'm sorry if I ask too stupid questions
Plugin development start
Discussion in 'Rust Development' started by POFIGIST, Mar 12, 2017.
-
Wulf Community Admin
That's basic C# information, which you can find various tutorials around the internet for.
-
wulf, how, for example, i can operate with text, which player type in chat?
var chat1 = ....???
this command i need.
[DOUBLEPOST=1489352539][/DOUBLEPOST]when i type in chat /test it's do nothing
Code:using Oxide.Core.Libraries.Covalence;namespace Oxide.Plugins { [Info("mfplu", "POFIGIST", 0.1)] [Description("ne pridumal")] class pofi : RustPlugin { void Init() { Puts("Init works!"); }void Loaded() { Puts("plugin loaded! Thery nice !"); } [Command("test")] void pofpl(IPlayer player, string command, string[] args) { player.Reply("Команда успешно обработана!До новых встреч!"); } // The rest of the code and magic } }
-
Wulf Community Admin
-
-
Wulf Community Admin
Code:[ChatCommand("test")] void pofpl(BasePlayer player, string command, string[] args) { player.ChatMessage("Команда успешно обработана!До новых встреч!"); }
-
wulf pls tell me, where i see, that i should type ChatMessage and not something? is there a list of such commands(player.ChatMessage etc?)?
-
Wulf Community Admin
-
thanks!
[DOUBLEPOST=1489353784][/DOUBLEPOST]and one more, why i type /test i see unknown command? Code below
Code:namespace Oxide.Plugins { [Info("mfplu", "POFIGIST", 0.1)] [Description("ne pridumal")] class pofi : RustPlugin { void Init() { Puts("Init works!"); }void Loaded() { Puts("plugin loaded! Thery nice !"); } [Command("test")] void pofpl(BasePlayer player, string command, string[] args) { player.ChatMessage("Команда успешно обработана!До новых встреч!"); } // The rest of the code and magic } }
-
Wulf Community Admin
-
Code:
namespace Oxide.Plugins { [Info("mfplu", "POFIGIST", 0.1)] [Description("ne pridumal")] class pofi : RustPlugin { void Init() { Puts("Init works!"); }void Loaded() { Puts("plugin loaded! Thery nice !"); } [ChatCommand("test")] void pofpl(BasePlayer player, string command, string[] args) { player.ChatMessage("Команда успешно обработана!До новых встреч!"); } // The rest of the code and magic } }
-
I try it -
Look, if you're using VS, use the "reference" object inspector. You can look at all classes, methods, and types(args).
If you don't have no clue on how to get other libraries, they are all stored in RustDedicated_Data/Managed/*.dll
.Net compiler, .Net reflector, IDA, good ones for deeper observing, but VS is all you need.