-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9d40ad
commit bab3780
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |