Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
thecroshel authored Aug 11, 2024
1 parent c9d40ad commit bab3780
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions RoundlockPlugin.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using System;
using Exiled.API.Features;
using Exiled.API.Interfaces;
using Server = Exiled.Events.Handlers.Server;

namespace RoundlockPlugin
{
public class RoundlockPlugin : Plugin<Config>
{
public static RoundlockPlugin Instance;

public override string Name => "RoundlockPlugin";
public override string Author => "thecroshel";
public override string Prefix => "roundlock_plugin";
public override Version Version => new Version(1, 0, 0);
public override Version RequiredExiledVersion => new Version(8, 4, 3);

public override void OnEnabled()
{
Instance = this;
Server.RoundStarted += OnRoundStarted;
base.OnEnabled();
Log.Info("RoundlockPlugin etkin.");
}

public override void OnDisabled()
{
Server.RoundStarted -= OnRoundStarted;
base.OnDisabled();
Log.Info("RoundlockPlugin devre dışı.");
}

private void OnRoundStarted()
{
Round.IsLocked = true;
Log.Info("Roundlock etkinleştirildi.");
}
}

public class Config : IConfig
{
public bool IsEnabled { get; set; } = true;
public bool Debug { get; set; } = false; // Implemented the missing Debug property
}
}

0 comments on commit bab3780

Please sign in to comment.