plugin-hub icon indicating copy to clipboard operation
plugin-hub copied to clipboard

DropTracker re-write

Open joelhalen opened this issue 1 year ago • 1 comments

Re-wrote the entire plugin to remove lots of excess code and messy logic. Used a lot of code to rewrite from Adam's Discord Loot Logger.

All players' drops are now tracked via our Discord webhook system, and players can enable their own "discord loot logger"-style webhook notifications for drops if they don't have a clan or don't want to use the Discord bot.

Players can sign up for events in our Discord server, which are centered around drops/pvm content.

Implemented a new side panel with enhanced functionality and much better management of thread usage to prevent latency issues that many users were reporting with the API enabled

joelhalen avatar Mar 03 '24 11:03 joelhalen

You can't use null.com as an "invalid" domain; https://null.com is a real website. Please ensure your plugin is not sending unwanted outbound connections when your config is not set up to do so. The chat commands you're registering in your plugin are never unregistered; please do so in your plugin's shutDown method. Your plugin panel is registered to the event bus on init but is never unregistered. (deinit() is never called) Please ensure it is unregistered when it is removed and/or on plugin shutDown.

Nightfirecat avatar Apr 05 '24 23:04 Nightfirecat

You can't use null.com as an "invalid" domain; https://null.com is a real website. Please ensure your plugin is not sending unwanted outbound connections when your config is not set up to do so. The chat commands you're registering in your plugin are never unregistered; please do so in your plugin's shutDown method. Your plugin panel is registered to the event bus on init but is never unregistered. (deinit() is never called) Please ensure it is unregistered when it is removed and/or on plugin shutDown.

Apologies for that oversight; should be fixed. I've defaulted the API to use an empty url and made sure the commands and side panel are both removed on shutdown.

Thanks for your time

joelhalen avatar Apr 06 '24 19:04 joelhalen

You were already removing your plugin's nav button on shutDown, however you are never calling panel.deinit(), so it remains subscribed to the event bus.

Nightfirecat avatar Apr 06 '24 22:04 Nightfirecat

You were already removing your plugin's nav button on shutDown, however you are never calling panel.deinit(), so it remains subscribed to the event bus.

Ah alright; took care of that. Thanks for your patience.

joelhalen avatar Apr 07 '24 10:04 joelhalen

This will cause an NPE (because you nulled it the line before) and not deinit it.

Nightfirecat avatar Apr 08 '24 01:04 Nightfirecat