diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-09 23:24:15 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-09 23:24:15 +0200 |
commit | b4bd11579f42cd835c52d0d9e93c045137fec286 (patch) | |
tree | 83c4d88ed252ec222b0ac814751cc464161b710c | |
parent | fd21e3c6f7c40f92972f594b2724950e036986a9 (diff) | |
download | skyhanni-b4bd11579f42cd835c52d0d9e93c045137fec286.tar.gz skyhanni-b4bd11579f42cd835c52d0d9e93c045137fec286.tar.bz2 skyhanni-b4bd11579f42cd835c52d0d9e93c045137fec286.zip |
Small changes and give credit
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | FEATURES.md | 3 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/Misc.java | 8 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt | 4 |
4 files changed, 9 insertions, 7 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index bea37562f..6d3726601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ + Added Broken Hyperion Warning (Slayer only) + Warns when right-clicking with a Wither Impact weapon (e.g. Hyperion) no longer gains combat exp (Kill a mob with melee-hits to fix this hypixel bug) ++ Added Piece of Wizard Portal show earned by player name (Contributed by HiZe) ### Changes + Added Options for displays Crop Milestone and Best Crop Time. diff --git a/FEATURES.md b/FEATURES.md index 99ccf3bb7..b363fef71 100644 --- a/FEATURES.md +++ b/FEATURES.md @@ -282,4 +282,5 @@ + Supports tab completing for warp points when typing /warp + Supports party members, friends (need to visit all friend list pages), player on the same server + Supports these commands: /p, /party, /pt (party transfer), /f, /friend /msg, /w, /tell, /boop, /visit, /invite, /ah, /pv (NEU's Profile Viewer), /shmarkplayer (SkyHanni's Mark Player feature) - + Supports VIP /visit suggestions (currently PortalHub and prtlhub, if you know similar islands, tell us please)
\ No newline at end of file + + Supports VIP /visit suggestions (currently PortalHub and prtlhub, if you know similar islands, tell us please) ++ Piece of Wizard Portal show earned by player name (Contributed by HiZe)
\ No newline at end of file diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java index fbb623f44..bf2baef35 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java @@ -503,14 +503,14 @@ public class Misc { public boolean serverRestartTitle = true; @Expose - @ConfigOption(name = "Config Button", desc = "Add a button to the pause menu to configure SkyHanni.") + @ConfigOption(name = "Piece Of Wizard Portal", desc = "Restore the Earned By lore line on bought Piece Of Wizard Portal.") @ConfigEditorBoolean - public boolean configButtonOnPause = true; + public boolean restorePieceOfWizardPortalLore = true; @Expose - @ConfigOption(name = "Piece Of Wizard Portal", desc = "Restore the Earned By lore line on bought Piece Of Wizard Portal.") + @ConfigOption(name = "Config Button", desc = "Add a button to the pause menu to configure SkyHanni.") @ConfigEditorBoolean - public boolean restorePieceOfWizardPortalLore = true; + public boolean configButtonOnPause = true; @Expose public Position inventoryLoadPos = new Position(394, 124, false, true); diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt index 01810d729..67883f422 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt @@ -15,8 +15,8 @@ class RestorePieceOfWizardPortalLore { if (!config.restorePieceOfWizardPortalLore) return val stack = event.itemStack if (stack.getInternalName() != "WIZARD_PORTAL_MEMENTO") return - val recipient = stack.getRecipientName() - if (!event.toolTip[5].contains(recipient!!)) { + val recipient = stack.getRecipientName() ?: return + if (!event.toolTip[5].contains(recipient)) { event.toolTip.add(5, "ยง7Earned by: $recipient") } } |