Trying an example

Due to human (non-bot) spam the first contribution of a user has to be reviewed and activated manually, all further contributions do not require this.
As long as a user does not have at least one reviewed and activated contribution, the user is unable to edit his profile, set a avatar, title picture or a signature.
  • Hello all trying some code for examples for mods here is what i did:

    using Eco.Gameplay.Players;

    using Eco.Gameplay.Systems.Chat;

    using Eco.Shared.Networking;

    using System;

    namespace MyMod

    {

    public class Class1 : IChatCommandHandler

    {

    [ChatCommand("test command","bhop")]

    public static void hopping()

    {

    ChatManager.ServerMessageToAllLoc("test");

    }

    }

    }

    I get the following errors:

    Severity Code Description Project File Line Suppression State

    Error CS1503 Argument 1: cannot convert from 'string' to 'System.FormattableString' MyMod C:\Users\falzs\source\repos\MyMod\Class1.cs 13 Active

    THis seems so traight forwqard i dont understand why it wont take "test" as a string any help me?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!