Skip to content

Commit

Permalink
Add /phb list feature
Browse files Browse the repository at this point in the history
Done on github's web editor so if it's broken, that's why. Should be all good though, prints a list of (alphabetically-sorted) hunts grouped by expac into your chat.
  • Loading branch information
PrincessRTFM authored Nov 6, 2023
1 parent 1a2cca5 commit fe45b44
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions HuntBuddy/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,16 @@ public unsafe void PluginCommand(string command, string args)
}
}
break;
case "ls":
case "list":
if (this.MobHuntEntries.Count < 1) {
Chat.Print("No hunt marks found. If this doesn't sound right, please use `/phb reload` and try again.");
break;
}
foreach (string expac in this.MobHuntEntries.Keys) {
Chat.Print($"{expac}: {string.Join(", ", this.MobHuntEntries[expac].Values.SelectMany(e => e).OrderBy(s => s.Name))}");
}
break;
default:
this.OpenConfigUi();
break;
Expand Down

0 comments on commit fe45b44

Please sign in to comment.