34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
// <copyright file="StartHeykelSavasiEventChatCommandPlugIn.cs" company="MUnique">
|
|
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
|
|
// </copyright>
|
|
|
|
namespace MUnique.OpenMU.GameLogic.PlugIns.ChatCommands;
|
|
|
|
using System.Runtime.InteropServices;
|
|
using MUnique.OpenMU.GameLogic.PlugIns.PeriodicTasks;
|
|
using MUnique.OpenMU.PlugIns;
|
|
|
|
/// <summary>
|
|
/// A chat command plugin which handles the starths command.
|
|
/// </summary>
|
|
[Guid("F7FCB218-1A4F-462E-B091-90496FA65CA6")]
|
|
[PlugIn]
|
|
[ChatCommandHelp(Command, CharacterStatus.GameMaster)]
|
|
public class StartHeykelSavasiEventChatCommandPlugIn : IChatCommandPlugIn
|
|
{
|
|
private const string Command = "/starths";
|
|
|
|
/// <inheritdoc />
|
|
public string Key => Command;
|
|
|
|
/// <inheritdoc/>
|
|
public CharacterStatus MinCharacterStatusRequirement => CharacterStatus.GameMaster;
|
|
|
|
/// <inheritdoc />
|
|
public async ValueTask HandleCommandAsync(Player player, string command)
|
|
{
|
|
var strategy = player.GameContext.PlugInManager.GetStrategy<MiniGameType, IPeriodicMiniGameStartPlugIn>(MiniGameType.HeykelSavasi);
|
|
strategy?.ForceStart();
|
|
}
|
|
}
|