Commit Graph
100 Commits
Author SHA1 Message Date
Tomas Slusny 1bd796bee5 Remove unused variables in Herbiboar plugin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 17:22:13 -04:00
Tomas Slusny 5a7792d1ac Correctly name Herbiboar classes
- Rename Herbiboars to HerbiboarPlugin
- Rename HerbiboarsOverlay to HerbiboarOverlay
- Rename "Herbiboars" to "Herbiboar" plugin name

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 17:22:12 -04:00
Tomas Slusny a8daa0156e Fix Herbiboar plugin naming conventions
Methods should never start with uppercase letter.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 17:22:11 -04:00
Tomas Slusny ea1d610f1d Fix AgilityPlugin naming conventions
Methods should never start with uppercase letter.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 17:22:11 -04:00
Tomas Slusny 709ecd5987 Fix herbiboar plugin NPE on startup
Add null check for client.getMapRegions because during plugin startup
when game is loading, they are null.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-15 16:46:22 +01:00
Tomas Slusny ad95be84cf Merge pull request #960 from Toocanzs/spec-orb-improvement
Fix spec orb regen timing
2018-03-14 22:25:10 +01:00
Tomas Slusny 65619e998b Fix NPE from RSPlayer#getName
Add null check for getRsName, because when logging to game, sometimes it
is null, and throws NPE.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-14 18:09:58 +01:00
Tomas Slusny 380d4faba7 Fix NPEs on startup from PlayerIndicators
- Change the PlayerIndicators model to use injection
- Create new set from overlays when getOverlays is called

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-14 18:09:55 +01:00
Tomas Slusny 2f3dbb2678 Fix drawing of player names on minimap
Move drawing player names on minimap to separate overlay, so the minimap
names can be rendered over minimap in resizeable mode.

Fixes #940

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-14 10:09:31 +01:00
Tomas Slusny 258ff54848 Title-case and remove "plugin" from ME swapper
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 18:08:35 +01:00
Tomas Slusny 981855a14d Consistent behaviour between ClientUI and InfoPane
- Move method for creation of all buttons from NavigationButton to swing
util
- Correctly update InfoPanel when plugin is started or needs title bar
refresh
- Correctly update ClientUI title bar when custom one is visible

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:36:15 +01:00
Tomas Slusny d1cbf181e3 Change panel supplier to just getter for panel
As none of the plugins are creating the panels on demand anymore,
supplier for panel is not needed.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:36:15 +01:00
Tomas Slusny 9a54c75113 Add support for popups to navigation button
- Add support for popup map to navigation button
- Re-add popup to ScreenshotPlugin

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:36:15 +01:00
Tomas Slusny f1d5c4ef72 Add Discord button through DiscordPlugin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:36:15 +01:00
Tomas Slusny 059f92ad6c Make plugins work with new title toolbar
- Change info panel to support new hooks
- Change plugins to use NavigationButton for adding buttons to
titleToolbar

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:36:15 +01:00
Tomas Slusny 381b111b4a Remove the need for custom TitleToolbar component
- Extract title toolbar layout to separate component
- Create new events for adding and removing title toolbar buttons
- Create TitleToolbar through Guice

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Tomas Slusny 716c052247 Make plugins work with the new PluginToolbar
- Use updated construction for NavigationButton
- Replace ClientUI injections with PluginToolbar injections

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Tomas Slusny 445c5baf99 Remove need to extend JToolBar in PluginToolbar
- Create PluginToolbar through Guice
- Create separate component class for toolbar layout
- Create custom navigation button component to not depend on swing
- Create new events that are fired on new toolbar button addition and
removal

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Tomas Slusny 9bcc646d88 Make plugins work with new ClientUI
- Change LinkBrowser to not use ClientUI as parent for message box (not
required at all) and change it from Guice service to static utility
class
- Set screenshot plugin offsets statically without recalculating them
based on swing component

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Tomas Slusny 31048d2632 Remove the need to extend JFrame in ClientUI
- Make ClientUI wrap JFrame inside
- Do not make RuneLite class depend on Swing API at all
- Create ClientUI through Guice
- Simplify initialization and showing of UI

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Tomas Slusny 571f5f50c6 Extract utlity methods to SwingUtil class
- Extract common utlity methods from ClientUI to SwingUtil utlity class.
- Make OSXUtil accept JFrame instead of ClientUI

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-12 12:34:41 +01:00
Tomas Slusny aabd37854d Merge pull request #618 from sethtroll/removeviewportcontains
Remove viewport contains from cannon/hunter plugin
2018-03-09 17:59:38 +01:00
Tomas Slusny 3e4f8ba99a Allow specifying default world in [0-9]{2} format
Automatically append 300 to every world that is lower than 300 to
support both f.e. 22 and 322 formats for specifying the world.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-09 15:09:01 +01:00
Tomas Slusny 081c60f4b3 Merge pull request #853 from Kamielvf/raids-move-points-box
Raids plugin: Reposition the points box to prevent it from overlapping overlays
2018-03-09 00:06:51 +01:00
Tomas Slusny 683cef9b09 Merge pull request #895 from Bartvhelvert/master
Remove unneeded drawRegionTile calls
2018-03-08 20:47:44 +01:00
Tomas Slusny 07968fbfcd Merge pull request #898 from Kamielvf/instance-map-fix
Fix instance map "show" option not displaying in right-click menu
2018-03-08 19:21:17 +01:00
Tomas Slusny ce69024d31 Remove special attack orb plugin
Because special attack orb has been added to OSRS in latest update, this
plugin is no longer needed. The functionality that shows next change
will need to be readded in future.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-08 13:13:38 +01:00
Tomas Slusny 12329828ea Merge pull request #837 from deathbeam/make-names-consistent
Normalize plugin names
2018-03-07 18:40:37 +01:00
Tomas Slusny da7f7a01ee Add support for drawing names on minimap
Add support to Player Indicators plugin to draw names on minimap
(disabled by default).

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-07 11:08:09 +01:00
Tomas Slusny 88c2804ed4 Remove duplicated and unused OverlayUtil code
- Use OverlayUtil in implings plugin
- Remove unused code in OverlayUtil

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-07 10:57:45 +01:00
Tomas Slusny ae78728658 Merge pull request #868 from josharoo/remove-duplicate-timer
Remove duplicate anti-venom+ config check
2018-03-06 21:47:26 +01:00
Tomas Slusny 79b660aad1 Inverse window resize condition
- Change isResizable to lockWindowSize
- Update the description and keyName
- Inverse the condition

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-06 21:45:18 +01:00
Tomas Slusny df1e51dbc6 Add default world plugin
Add default world plugin where user will be able to set his default
world. In case invalid world is set, the client default/selected one
will be used instead.

Fixes #475
Closes #749

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-06 15:22:01 +01:00
Tomas Slusny 78728c471e Simplify RuneLite API world
- Use Lombok for World object

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-06 15:22:01 +01:00
Tomas Slusny c0e9a502eb Add support for changing world to API
- Export World from RS client
- Export changeWorld method
- Create new method for creating RuneScape world

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-06 15:22:00 +01:00
Tomas Slusny 1d01816c3f Merge pull request #852 from Kamielvf/cannon-doublehit-fix
Fix cannon plugin showing incorrect double hit spots after region change
2018-03-06 11:05:16 +01:00
Tomas Slusny 0fb3d88309 Merge pull request #841 from ChaoticConundrum/waterskin-count
Add waterskin charges to jewellerycount plugin
2018-03-06 09:15:38 +01:00
Tomas Slusny 13eeb9965d Normalize plugin names
- Replace abbreviations with full names
- Make casing in plugins consistent (title case)

These changes are needed in order to achieve better navigation in config
panel and also to improve search results in the panel (and to reduce the
mess with current naming).

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-05 20:00:42 +01:00
Tomas Slusny 1c46fc7c09 Merge pull request #835 from Desetude/fix/xpdrop
Renamed 'Experience drop' -> 'XP Drop'
2018-03-05 18:33:06 +01:00
Tomas Slusny 84d710d0f8 Disable team capes plugin by default
For most of people this plugin is not relevant so it should be disabled
by default as it adds unnecessary clutter in populated areas.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-05 15:43:39 +01:00
Tomas Slusny 2ad56f8dff Add idle anim and combat idle toggles to notifier
Add toggles for idle animation notifications and combat idle
notifications to idle notifier plugin.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-05 15:41:10 +01:00
Tomas Slusny c4ebddf12d Restore original username on syncer shutdown
Fixes #804

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-05 15:08:15 +01:00
Tomas Slusny b9220785a5 Continue running in case Discord lib load failed
In case loading of Discord library failed, continue running application
and just disable Discord support.

Fixes #826

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-05 14:53:34 +01:00
Tomas Slusny fb99c107eb Merge pull request #818 from sethtroll/addmoreanimations
idle notifier: add barbtail/dragon harpoon animation
2018-03-05 00:00:17 +01:00
Tomas Slusny 20f805cc1a Use new link browser in feed plugin
Use new link browser to open links from feed plugin entries.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-04 18:22:55 +01:00
Tomas Slusny 5bb29d32d5 Use new link browser in Grand Exchange plugin
Use new link browser when opening links from search results of the
Grand Exchange plugin

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-04 18:22:54 +01:00
Tomas Slusny 3aa6a92aa3 Use new LinkBrowser in SessionManager
Use new LinkBrowser API in SessionManager for opening the links.

Fixes: #434

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-04 17:32:16 +01:00
Tomas Slusny 6790591392 Add link browser utility service
Add link browser utility service that will try to open specified link in
browser, and in case operation fails displays message box and copy URL
to clipboard.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-04 17:32:16 +01:00
Tomas Slusny 0fb7590ea9 Improve scoring of Jaro-Winkler
Increase scoring based on string equality and contains checks with
lowercased and original casing.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-04 17:31:34 +01:00
Tomas Slusny 906034ed49 Make idle notifier work for splashing/missing
When you splash or miss too many times HP dissapears and thus client
thinks that you have -1 HP and then idle notifier ignores that. Reason
why -1 check was there is because it was added in modification when we
were preventing the NPCs to throw notifications. But after some testing
it looks like that just checking for combat level is enough.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-04 10:22:53 +01:00
Tomas Slusny a911c9564d Merge pull request #579 from sethtroll/addraidsreward
Add Raids reward to screenshot plugin
2018-03-03 20:16:31 +01:00
Tomas Slusny b9cde8a787 Correctly focus game canvas when requesting focus
Correctly focus game canvas when requesting ClientUI focus. Also, move
the call to OSXUtil.requestFocus() to clientUI.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-03 03:59:50 +01:00
Tomas Slusny 078e3fe9f6 Merge pull request #780 from Kamielvf/raids-plugin-hotfix
Raids plugin: read proper input for room whitelist
2018-03-02 22:02:51 +01:00
Tomas Slusny 829bc61023 Remove the timeout for HP/pray thresholds
Fixes: #757

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-02 15:10:43 +01:00
Tomas Slusny 03bf1da654 Merge pull request #771 from sethtroll/addraidfood
item stat: add raid food
2018-03-02 14:37:24 +01:00
Tomas Slusny 62af296912 Fix "You are fishing" in fishing plugin
Replace equality check with contains check due to recent renaming of
some fishing spots from OSRS side.

Fixes: #755

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-02 13:11:03 +01:00
Tomas Slusny 1fe2879140 Merge pull request #700 from l2-/prayerEnhanceTimerFix
fix prayer enhance timer. its actually 10 seconds shorter than 5 minutes
2018-03-02 13:09:17 +01:00
Tomas Slusny 7509701682 Merge pull request #766 from Kamielvf/resize-hotfix
Fix visual bug occuring when sidepanel is contracted after resizing
2018-03-02 11:48:59 +01:00
Tomas Slusny be211ebbee Allow other types of alerts when messages are off
- Allow sending beep and requesting window focus when having notification
messages disabled

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-02 10:37:21 +01:00
Tomas Slusny ff4066cd74 Merge pull request #772 from Kamielvf/raids-plugin-hotfix
Raids plugin: Make rotation whitelist not case-sensitive
2018-03-02 08:45:31 +01:00
Tomas Slusny 492196ca32 Remove inSequence import b/c problems with mapping (#753)
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-01 15:31:38 +01:00
Tomas Slusny 3f544bc83f Remove unnecessary chatCommandsEnabled from config
As this is not used in chat commands only anymore, and since it is
configuration parameter that noone needs to disable, it is unnecessary
and is just causing confusion.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-01 12:07:23 +01:00
Tomas Slusny 3c7aa79ac5 Add support for oily rod fishing to idle notifier
- Mainly for infernal eels (and other eels as well)

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-01 08:36:44 +01:00
Tomas Slusny a386dab3f2 Remove notification settings from NMZ
Remove notification settings from NMZ that are now contained in
RuneLiteConfig.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-01 01:12:58 +01:00
Tomas Slusny 5f0f0c6836 Remove duplicate options from IdleNotifier
Remove options that are now contained in RuneLiteConfig from idle
notifier.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-01 01:12:58 +01:00
Tomas Slusny 6ffe5da929 Move the notification options to Notifier
- Move enabling of tray notifications to RuneLiteConfig
- Move request when focused notification option to RuneLiteConfig and
use it in notifier
- Move request window focus to RuneLiteConfig and use it in notifier
- Change Notifier to use Guice for creation

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-03-01 01:12:58 +01:00
Tomas Slusny aebfe444af Add fuzzy searching to config panel
Add fuzzy search to config panel. Searches for matching query in list of
entries (plugin names) based on
[Jaro-Winkler Distance](https://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance).

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-28 23:43:45 +01:00
Tomas Slusny 76fbab60fc Remove catch rate overlay
Remove catch rate overlay because the catch attemps do not always need
to be correct, because sometimes it might count other player's trap.
Also, it works only for imps, boxes and bird snares otherwise it always
shows 100%.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-28 10:27:13 +01:00
Tomas Slusny 70916be164 Remove animation checks
Remove animation checks from hunter plugin because animations are
unreliable and do not work during 3ticking. Reasoning is it is better to
have shown extra traps sometimes than not registering own traps
sometimes

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-28 10:26:13 +01:00
Tomas Slusny 326f498ae9 Merge pull request #565 from XrioBtw/patch-11
Add missing cancel menu action
2018-02-27 17:34:35 +01:00
Tomas Slusny bec15addbb Merge pull request #724 from devLotto/model-fix
Fix ArrayIndexOutOfBoundsException on getting vertices of certain gameobjects
2018-02-27 17:10:12 +01:00
Tomas Slusny 85003ff5c0 Fix NPE in minimap plugin
Prevent failing on NPE when trying to access originalDotSprites or when
trying to access map dots.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-27 14:23:25 +01:00
Tomas Slusny 046304bedd Merge pull request #675 from Kamielvf/raids-plugin-fix
Fix minor issues with Raids plugin
2018-02-25 10:47:27 +01:00
Tomas Slusny 2efce3646e Fix crash in ClienUI configChanged event
Fix crash that can happen when ConfigChanged event arrives to ClientUI
and pack method is called in the event thread. Move swing/awt related
calls to swing thread to avoid this issue.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-24 22:11:43 +01:00
Tomas Slusny daff19c13e Merge pull request #643 from sethtroll/fiximagecomponent
image component: fix images being off-centered
2018-02-24 02:50:49 +01:00
Tomas Slusny a77f9b361f Rename "Low memory" to "Low detail" plugin
Closes #595

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-24 02:01:04 +01:00
Tomas Slusny 973d2b6aab Merge pull request #678 from Kamielvf/overlayrender-fix
Fix overlays not being rendered
2018-02-23 22:01:27 +01:00
Tomas Slusny 9f0ccf04c1 Merge pull request #672 from devLotto/grounditems-offset-z
grounditems: offset text on z axis
2018-02-23 13:24:48 +01:00
Tomas Slusny dff2b3147b Add default timeout to notify-send on Linux
Add default timeout of 10 seconds to notify-send on Linux to not depend
on default notification timeout on Linux notify daemon, because on some
system the default can be never hide unless timeout is set.

See also: #549

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-23 12:18:37 +01:00
Tomas Slusny 807a38d769 Add support for maniacal monkeys to hunter plugin
- Add support for maniacal monkey large boulder traps to hunter plugin
- Add support for notifications on maniacal monkey catch/escape

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-22 16:18:11 +01:00
Tomas Slusny 9313747479 Prevent throwing duplacite events for GameObject
Store last gameObject as static variable in tile mixin and in case new
event is exactly same as last one in game object spawned, do not
proceed.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-22 16:18:11 +01:00
Tomas Slusny b3537781b5 Merge pull request #642 from Abextm/info-panel-disable
Allow the info panel's navButton to be removed on shutDown
2018-02-21 08:33:10 +01:00
Tomas Slusny dfcdf93968 Add chat history plugin
- Add chat history plugin that will be able to preserve the chat history during logout/world hop
- Track only PUBLIC, CLANCHAT, PRIVATE_MESSAGE_* and GAME messages in the history plugin
2018-02-20 19:39:57 +01:00
Tomas Slusny df7f4a6a7d Add check for clan members > 0 when inserting icon
To prevent caching clan icons after world hopping/logout when chat history sends the messages.
2018-02-20 19:39:56 +01:00
Tomas Slusny 04cf082b9c Enhance the sending message API
- Change sendGameMessage call to addGameMessage to allow sending messages with all supported fields
- Update chat message manager to support sending messages with all supported fields
2018-02-20 19:39:48 +01:00
Tomas Slusny b7e45278b0 Fix PuzzleSolverOverlay layer
Set PuzzleSolverOverlay layer to be above widgets so the arrows would
actually render over the puzzle box.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-20 12:41:32 +01:00
Tomas Slusny e4080d65c5 Merge pull request #621 from Sethtroll/removenullableclient
Remove @Nullable Client annotations
2018-02-18 00:43:44 +01:00
Tomas Slusny f8a8e9e53d Display tooltips for widget actions
Check for option instead of target presence when renderingt the mouse
highlighting overlay.

Fixes: #490

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-16 18:14:31 +01:00
Tomas Slusny 55f79acfef Add support for Karambwan/Karambwanji to fishing
- Add support for Karambwan fishing spots
- Add support for Karambwanji/Shrimp fishing spots

Karambwan fishing is now great again and this is needed.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-16 11:24:17 +01:00
Tomas Slusny fafe5ffabe Disable configuration button when all items hidden
Disable configuration button in ConfigPanel when all configuration items
of the plugin are hidden.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-16 08:21:27 +01:00
Tomas Slusny 52be62f751 Merge pull request #590 from Kamielvf/teamcape-update
Update team cape plugin to make use of new plugin panel toggles
2018-02-16 07:46:55 +01:00
Tomas Slusny 7b9ca399b0 Merge pull request #587 from Kamielvf/clan-icons-fix
Fix clanchat icons
2018-02-16 00:22:27 +01:00
Tomas Slusny a0f074fd86 Re-cache chatMessageManager colors on startup
Re-cache chatMessageManager colors on plugin startup and refresh chat
messages.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:56:20 +01:00
Tomas Slusny cc124d6d58 Properly invalidate cache and load icons in Clan
Properly invalidate cache on plugin shutdown and load clan chat icons on
plugin startup.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:24:29 +01:00
Tomas Slusny 659cfa6dc2 Remove "plugin" from each plugin name
Having "plugin" in plugin names is completely redundant and should not
be there.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:24:29 +01:00
Tomas Slusny 5659719d53 Enable/disable plugins in the ConfigPanel
Add ability to enable and disable plugins in the config panel.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:24:28 +01:00
Tomas Slusny d5c5ae8dcf Add startup and shutdown methods to DiscordPlugin
Add startup and shutdown methods that will update/reset the current
discord rich presence status

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:24:28 +01:00
Tomas Slusny 2d559d1aab Add null check for 6 hour waiting time
Add null check for sixHourWaitingTime instant. This value can be null in
case plugin was disabled before user logged in and so sixHourWaitingTime
was never set.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:24:28 +01:00
Tomas Slusny 033fb640b1 Clear game objects on plugin shutdown
As we receive new events from RegionTileManager now, properly clear
all cached game objects on plugin's shutdown
2018-02-15 16:24:27 +01:00
Tomas Slusny 0c41a9c89d Add region tile manager
- Add region tile manager utility class that can be used for iterating
each tile in the player region on current plane or for simulation object
spawns for subscriber.
- Simulate object spawns for each started-up plugin

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-02-15 16:00:11 +01:00