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?