diff --git a/client/Commands.cs b/client/Commands.cs index f1300a1..10221f3 100644 --- a/client/Commands.cs +++ b/client/Commands.cs @@ -22,7 +22,7 @@ internal class Commands : IDisposable { case "ban": this.Plugin.Config.BannedTerritories.Add(this.Plugin.ClientState.TerritoryType); this.Plugin.SaveConfig(); - this.Plugin.Messages.SpawnVfx(); + this.Plugin.Messages.RemoveVfx(); break; case "unban": this.Plugin.Config.BannedTerritories.Remove(this.Plugin.ClientState.TerritoryType); diff --git a/client/Messages.cs b/client/Messages.cs index 0141e0e..ed46f61 100644 --- a/client/Messages.cs +++ b/client/Messages.cs @@ -88,6 +88,10 @@ internal class Messages : IDisposable { } private void RemoveVfx(object? sender, EventArgs? e) { + this.RemoveVfx(); + } + + internal void RemoveVfx() { this.Plugin.Vfx.RemoveAll(); }