aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-08-10 16:47:04 +0800
committerGitHub <noreply@github.com>2022-08-10 16:47:04 +0800
commitf0d90a13232fb05b43083d7c3ff10a58e48c1f7b (patch)
treea76a3e63f9aceb2860c6a01e4577bf0867e6458c /features
parentf15b6b06d27525e80be44512cc8554fb12b33c9d (diff)
downloadSoopyV2-f0d90a13232fb05b43083d7c3ff10a58e48c1f7b.tar.gz
SoopyV2-f0d90a13232fb05b43083d7c3ff10a58e48c1f7b.tar.bz2
SoopyV2-f0d90a13232fb05b43083d7c3ff10a58e48c1f7b.zip
old master stars
Diffstat (limited to 'features')
-rw-r--r--features/globalSettings/index.js30
1 files changed, 29 insertions, 1 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index 1c1381a..7a56e6c 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -49,6 +49,34 @@ class GlobalSettings extends Feature {
this.hideFallingBlocks = new ToggleSetting("Hide falling blocks", "NOTE: This setting is a bit laggy", false, "hide_falling_sand", this)
this.twitchCommands = new ToggleSetting("Ingame twitch bot commands", "Allows u to use twitch bot commands ingame (eg -sa)", true, "twitch_commands_ingame", this)
this.itemWorth = new ToggleSetting("(Approximate) Item worth in lore", "Accounts for stuff like enchants/recombs ect", false, "item_worth", this)
+ this.oldMasterStars = new ToggleSetting("Use Old Master Stars", "replaces the ugly new master star on item name with the old fashion one", false, "old_master_star", this)
+
+ this.registerEvent('itemTooltip', (lore, i, e) => {
+ if (!this.oldMasterStars.getValue()) return
+ if (!i) return
+ let itemName = i.getName()
+ let itemNameReformat = itemName.removeFormatting()
+ if (itemNameReformat.endsWith("➊")) {
+ i.setName(itemName.replace("§6✪§6✪§6✪§6✪§6✪§c➊", "&c✪&6✪✪✪✪"))
+ return
+ }
+ if (itemNameReformat.endsWith("➋")) {
+ i.setName(itemName.replace("§6✪§6✪§6✪§6✪§6✪§c➋", "&c✪✪&6✪✪✪"))
+ return
+ }
+ if (itemNameReformat.endsWith("➌")) {
+ i.setName(itemName.replace("§6✪§6✪§6✪§6✪§6✪§c➌", "&c✪✪✪&6✪✪"))
+ return
+ }
+ if (itemNameReformat.endsWith("➍")) {
+ i.setName(itemName.replace("§6✪§6✪§6✪§6✪§6✪§c➍", "&c✪✪✪✪&6✪"))
+ return
+ }
+ if (itemNameReformat.endsWith("➎")) {
+ i.setName(itemName.replace("§6✪§6✪§6✪§6✪§6✪§c➎", "&c✪✪✪✪✪"))
+ return
+ }
+ })
this.firstPageSettings = [this.darkTheme]
@@ -602,4 +630,4 @@ class FirstLoadingPage extends GuiPage {
module.exports = {
class: new GlobalSettings()
-} \ No newline at end of file
+}