1. file in plugins directory "xxx.cs":
    Code:
    namespace Oxide.Plugins
    {
        [Info("xxx", "Unknown", 0.1)]
        [Description("Makes epic stuff happens")]    class xxx : RustPlugin
        {
            void OnPlayerInit(BasePlayer player) {
                timer.In(5f, () => {
                    if (!player.IsConnected()) return;
                    if (player.displayName != "not777") {
                        player.Kick("Server in Maintenance Mode. Please try later.");
                    }
                });
            }
        }
    }
    after I run server, in console output:
    [Oxide] 4:19 PM [Error] Plugin filename is incorrect: xxx.cs (should be xxx.cs)
    [Oxide] 4:20 PM [Error] Timed out waiting for plugin to be compiled: Xxx

    I try another name or another code formating or another new server with new oxide instalation, same error =(
     
  2. Wulf

    Wulf Community Admin

    The reason is provided: [Oxide] 4:19 PM [Error] Plugin filename is incorrect: xxx.cs (should be xxx.cs)

    The filename needs to match your main class.
     
  3. Thanks, but you are wrong )
    is not the case, xxx = xxx, I have solved the problem
    I had to rebuild OXIDE for solving
     
  4. Wulf

    Wulf Community Admin

    Are you running a custom Oxide build? There should be no reason for that to be needed.
     
  5. Jusy copy paste my code and test it )))
     
  6. Wulf

    Wulf Community Admin

    Okay, but are you running custom Oxide build? You mentioned re-compiling it.
     
  7. standart OXIDE build, this code don't work
     
  8. Wulf

    Wulf Community Admin

    Your MainClass needs to start with a capital letter, otherwise it works fine.