New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature - Kingdom of Miscellania notification message #10933
Feature - Kingdom of Miscellania notification message #10933
Conversation
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use this page to get our style guide and import our formatter
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
Let me know if there's anything that needs to be changed. |
Happy to make any requested changes for approval. |
Let me know if anything needs to be changed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly small fixups. This PR generally looks good
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
Thanks for re-reviewing. Suggested changes have been committed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for keeping up with this PR all this time!
I never lost hope! |
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
1947732
to
d86ee19
Compare
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
Regrettably, I no longer have a membership. Would someone be so kind as to test this? Simply visit Miscellania, enable the notification message, leave the area, and relog. |
The changes look fine to me. I'll put some money in miscellania and play with this feature enabled for a few days and see how it looks. |
This doesn't seem to be working currently. I turned on notifications with a coffer threshold of 0 and a favor threshold of 100, but got no notification a day and a half later after depositing some money into my kingdom coffers. I'll look at this more later to see if I can't figure out why it's not working. |
Thanks for testing. I'll get a membership and test this out. |
I've fixed bugs relating to the new config functions. I've simulated the passage of time by calling the following function with different values and logging on and verifying the message is sent with approximations. setLastChanged(Instant.ofEpochSecond(1613522615));
setCoffer(1_000_000);
setFavor(127); |
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomConfig.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
...ite-client/src/main/java/net/runelite/client/plugins/kingdomofmiscellania/KingdomPlugin.java
Outdated
Show resolved
Hide resolved
55da30e
to
e23b9d2
Compare
e23b9d2
to
9d44ebf
Compare
I renamed everything from |
This allows setting a configurable threshold where you will receive a message informing you your favor and/or coffer is low on login Co-authored-by: Adam <Adam@sigterm.info>
9d44ebf
to
d0ec76e
Compare
Just here to say happy birthday to this PR. You would have been one year old today. Merged before your time. |
I dreamt of an additional feature for the KingdomPlugin several months and finally decided to implement it. Upon login, if the user is managing the kingdom, their coffer and favor will be sent as a chat notification. The values are calculated using the last known coffer and favor values the same way the server calculates them.
Let me know if I should create a corresponding issue for this feature and amend this PR to close it.closes #10939
Brandt