This commit is contained in:
Anna 2022-09-04 19:46:23 -04:00
parent 62191076f6
commit 128fb5d409
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -88,6 +88,10 @@ internal class Messages : IDisposable {
}
private void RemoveVfx(object? sender, EventArgs? e) {
this.RemoveVfx();
}
internal void RemoveVfx() {
this.Plugin.Vfx.RemoveAll();
}