Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
fix explode command error
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoniofo committed Feb 28, 2022
1 parent 000e157 commit 7c9e901
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions FunCommands/Commands/Explode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion FunCommands/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 7c9e901

Please sign in to comment.