From 7c9e901e48037caf13e9b12f70bd94f930c4aa6d Mon Sep 17 00:00:00 2001 From: Antoniofo Date: Mon, 28 Feb 2022 16:37:35 +0100 Subject: [PATCH] fix explode command error --- FunCommands/Commands/Explode.cs | 7 ++++--- FunCommands/Plugin.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/FunCommands/Commands/Explode.cs b/FunCommands/Commands/Explode.cs index 8802057..b12067a 100644 --- a/FunCommands/Commands/Explode.cs +++ b/FunCommands/Commands/Explode.cs @@ -35,7 +35,8 @@ public CommandResult Execute(CommandContext context) { foreach (Player ps in Server.Get.Players) { - Map.Get.Explode(ps.Position); + + Map.Get.Explode(ps.Position, Synapse.Api.Enum.GrenadeType.Grenade, context.Player); } result.Message = "Everyone Exploded"; result.State = CommandResultState.Ok; @@ -53,7 +54,7 @@ public CommandResult Execute(CommandContext context) { foreach (Player ps in Server.Get.Players.Where(x => x.RemoteAdminAccess == true)) { - Map.Get.Explode(ps.Position); + Map.Get.Explode(ps.Position, Synapse.Api.Enum.GrenadeType.Grenade, context.Player); } result.Message = "All Admin exploded"; result.State = CommandResultState.Ok; @@ -72,7 +73,7 @@ public CommandResult Execute(CommandContext context) { if (ps.NickName.ToLower().Contains(arg.ToLower())) { - Map.Get.Explode(ps.Position); + Map.Get.Explode(ps.Position, Synapse.Api.Enum.GrenadeType.Grenade, context.Player); Count++; break; } diff --git a/FunCommands/Plugin.cs b/FunCommands/Plugin.cs index 66ed1df..1a26de4 100644 --- a/FunCommands/Plugin.cs +++ b/FunCommands/Plugin.cs @@ -10,7 +10,7 @@ namespace FunCommand SynapseMajor = SynapseController.SynapseMajor, SynapseMinor = SynapseController.SynapseMinor, SynapsePatch = SynapseController.SynapsePatch, - Version = "v1.0.1" + Version = "v1.0.2" )] public class Plugin : AbstractPlugin {