Esempio n. 1
0
 internal async Task ServerStoppedNotification(ServerStoppedNotification notification)
 {
     if (ServerStopped != null)
     {
         await ServerStopped?.Invoke(notification);
     }
 }
 public async Task Minecraft_ServerStopped(ServerStoppedNotification notification)
 {
     await Application.Current.Dispatcher.InvokeAsync(delegate
     {
         PlayerList.Items?.Clear();
     });
 }
 public async Task Handle(ServerStoppedNotification notification, CancellationToken cancellationToken)
 {
     _state.Running = false;
     _state.CurrentPlayers.Clear();
     _state.StartTime = null;
     await _mediator.Publish(new MinecraftStateNotification
     {
         CurrentState = _state
     });
 }
 public override async Task OnStop(ServerStoppedNotification notification, IPluginContext context)
 {
     await _minecraftDiscordClient.SendMessageAsync("Server stopped");
 }
 public async Task Handle(ServerStoppedNotification notification, CancellationToken cancellationToken)
 {
     await _wonderlandClient.SetServerOfflineAsync();
 }
 public async Task Handle(ServerStoppedNotification notification, CancellationToken cancellationToken)
 {
     await _relayEventHandler.ServerStoppedNotification(notification);
 }
 public virtual Task OnStop(ServerStoppedNotification notification, IPluginContext context)
 {
     return(Task.CompletedTask);
 }