feat(hs): /starths force-start command + /hsteam GM test-join command
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// <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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user