Exiled-Team / Common-Utils

Common Utilities for Exiled Servers.
19 stars 30 forks source link

[BUG] Issuse with config when making a plugin #104

Closed KIttenPixel closed 1 year ago

KIttenPixel commented 1 year ago

Describe the bug When I try to port my plugin to the newest version I get this when in | config: 'Config' does not implement interface member 'IConfig.Debug'

Expected behavior Not getting a error and being able to build

**EXILED Version: 6.0.0-beta.22

KIttenPixel commented 1 year ago

also here is the code

KIttenPixel commented 1 year ago
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Exiled.API.Interfaces;

namespace Roundtools
{
    public class Config : IConfig
    {
        [Description("Determines if the plugin should be enabled or disabled.")]
        public bool IsEnabled { get; set; } = true;

        [Description("Determines if the cassie plays an annoucemnt at the start of a round.")]
        public bool AnnoucmentAtStart { get; set; } = true;

        [Description("What annoucment cassie plays at the start of a round.")]
        public string RoundstartAnnoucment { get; set; } = "Containment Breach Detected!";

        [Description(
            "Amount of time to cache players after they have left. (Best to keep resonable to avoid disk read on round restarts)")]
        public float PlayerCacheTime { get; set; } = 120;
        public bool DisplayStartMessage { get; set; } = true;
        public ushort StartMessageTime { get; set; } = 20;
        public string DisplayMessageText { get; set; } = "<color=yellow><b>Did you know you can swap classes with other SCP's?</b></color> Simply type <color=orange>.scpswap (role number)</color> in your in-game console (not RA) to swap!";
    }
}
KIttenPixel commented 1 year ago

This is config file

joker-119 commented 1 year ago

Invalid as you are not using the most up to date release