mastercake10 / uShop

A simple shop plugin for selling items
GNU General Public License v3.0
3 stars 8 forks source link

Sold Item RGB Colors not being correctly shown in receipt the hover message #30

Open 4L0N50asd opened 1 month ago

4L0N50asd commented 1 month ago

What steps will reproduce the issue?

  1. Give yourself an item with a custom RGB Color Name (I used this on EssentialsX: /itemrename &#ab824fDiam&#f7d2e9ante)
  2. Add that item to the shop with any random price
  3. Sell your item in the shop
  4. Hover over the receipt message → The item transformed the original RGB-Hex colors to Minecraft color code (&0-9, &a-f)

What was supposed to happen?

You should see the item with the correct colors image

What happened instead?

You see the Minecraft Color Code colors. This is a problem because a lot of HEX-RGB colors may be auto translated to &0 which means black. That means you wouldn't see the name of the item because the background is dark too.

What version of this plugin are you using?

uShop version 2.2.2-SNAPSHOT

What Spigot version are you using? Paste the output of /version below.

Server running Paper version 1.21-107-master@aa36ae6 (2024-07-21T10:39:28Z) (Implementing API version 1.21-R0.1-SNAPSHOT)

What plugins do you have installed? Paste the output of /plugins below.

AdvancedBan, AnimatedScoreboard, AuraSkills, AuthMe, BeautyQuests, BlazeFly, BungeeGuard, BungeeTabListPlus, Chunky, Citizens, CitizensText, CMILib, CommandPanels, CoreProtect, CrateReloaded, CrazyAdvancementsAPI, CustomCrafting, DeathEffects, DecentHolograms, DiscordSRV, dynmap, Dynmap-Towny, EffectLib, Elevator, Essentials, EssentialsChat, EssentialsGeoIP, EssentialsSpawn, ExtraContexts, FancyFirework, FarmControl, GSit, HeadsPlus, Images, InfoHeads, InventoryRollbackPlus, ItemEditor, Jobs, LevelledMobs, LuckPerms, LWC, LWCTrust, Multiverse-Core, Multiverse-NetherPortals, NamelessMC, OpenInv, PerWorldInventory, PetBlocks, PL-Hide, PlaceholderAPI, PlayerAuctions, PlayerParticles, PlugManX, ProtocolLib, PvPManager, QuickShop-Hikari, Residence, Sentinel, Shopkeepers, SimplePortals, SkBee, SkinsRestorer, Skript, skript-placeholders, skript-reflect, skript-yaml, SpawnerMeta, Themis, Towny, UltimateAutoRestart, UltimateTimber, uShop, Vault, ViaBackwards, ViaVersion, VotingPlugin, Wild, WolfyUtilities, WorldBorder, WorldEdit, WorldEditSelectionVisualizer, WorldGuard, WorldGuardExtraFlags

Are any errors related to this plugin in your console or logs? If so, paste below.

No errors

Any additional information that you would like to provide that may be relevant to the issue?