Checking the config group instead of the config key on config events
Currently onConfigChanged noops because of wrong check.
Initializing the widgets for the world list interfaces on plugin startup
Currently the widgets are only ever written to on interface load from the script event. Starting the plugin when the interface is already loaded does nothing as the widgets are still null; this fixes the behavior.
Unhiding the worlds' menu entries on shutdown, to display the associated world number instead of remaining hidden as "WXXX".
Improve the friends chat world hiding to hide widgets by index, this prevents renaming players in the friends chat list to "WXXX" if their username matches the regex.
And limit the regex to exactly 3 digits. This is because it doesn't seem necessary to hide the world number of RS3 worlds, and it may cause grief/confusion for players e.g. if they unknowningly Hop-to RS3 worlds through the world hopper/other plugins.
This PR aims to fix minor bugs within the plugin:
Checking the config group instead of the config key on config events Currently
onConfigChanged
noops because of wrong check.Initializing the widgets for the world list interfaces on plugin startup Currently the widgets are only ever written to on interface load from the script event. Starting the plugin when the interface is already loaded does nothing as the widgets are still null; this fixes the behavior.
Unhiding the worlds' menu entries on shutdown, to display the associated world number instead of remaining hidden as "WXXX".
Improve the friends chat world hiding to hide widgets by index, this prevents renaming players in the friends chat list to "WXXX" if their username matches the regex.
And limit the regex to exactly 3 digits. This is because it doesn't seem necessary to hide the world number of RS3 worlds, and it may cause grief/confusion for players e.g. if they unknowningly Hop-to RS3 worlds through the world hopper/other plugins.