1. 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
     
  2. Wulf

    Wulf Community Admin

    That's basic C# information, which you can find various tutorials around the internet for.
     
  3. 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
        }
       
    }
     
  4. Wulf

    Wulf Community Admin

    [Command("test")] is only for CovalencePlugin, not RustPlugin.
     
  5. how command for RustPlugin? in other plugin it works(ex. ServerInfo), but not here
     
  6. Wulf

    Wulf Community Admin

    Code:
            [ChatCommand("test")]
            void pofpl(BasePlayer player, string command, string[] args)
            {
                player.ChatMessage("Команда успешно обработана!До новых встреч!");
            }
     
  7. 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?)?
     
  8. Wulf

    Wulf Community Admin

    It's from Rust's Assembly-CSharp.dll, which you can see with a .NET decompiler.
     
  9. 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
        }
       
    }
     
  10. Wulf

    Wulf Community Admin

    Because you're still using what I said doesn't work.
     
  11. 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
        }
      
    }
    As Wulf said, [Command("")] is covalence plugins(meaning plugins that serve for multiple games) while [ChatCommand("")] is mainly for rust. They also have different arguments(IPlayer player and BasePlayer player) where BasePlayer is rusts player.
     
  12. Thank's Very much!
    I try it
     
  13. 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. :)