BlueMapOfflineSkinSupport

BlueMapOfflineSkinSupport icon

BlueMapOfflineSkinSupport

Adds proper offline skin acquisition support to BlueMap's web UI.

 

Note: This README is best experienced on GitHub for the most correct formatting.

 

What is this?

BlueMapOfflineSkinSupport is a plugin that adds proper support to BlueMap for displaying player heads in offline-mode Minecraft servers.

It also supports custom skins set using SkinsRestorer or CustomSkinsManager, though the use of these plugins is not at all required.

Player heads are generated in the exact same way as BlueMap's native player heads, and the web root directory, among other options are fully configurable.


How do I install this on my Minecraft server?

Prerequisites

  • Paper (recommended) / Spigot / CraftBukkit for Minecraft 1.8 or higher
    • This should also work with any other Minecraft server software capable of loading Bukkit plugins.
    • If you are using Waterfall / BungeeCord, you will most likely need to install this plugin on each individual linked Minecraft server, in addition to any Waterfall / BungeeCord servers.
  • Optionally: SkinsRestorer or CustomSkinsManager

Installation

  1. Completely shut down your Minecraft server using /stop.
  2. Download the latest *.jar file from the GitHub releases page.
  3. Copy the *.jar file to your /plugins/ directory.
  4. If you changed your BlueMap web root directory, you'll want to make sure that the value also matches in the configuration file located at /plugins/BlueMapOfflineSkinSupport/config.yml. ※ For reference, here are the default contents of config.yml.
  5. Start your server and enjoy having the correct player heads appear on BlueMap's web UI!

How do I build/compile this?

Prerequisites

  • IntelliJ IDEA (Community Edition is free!)
  • If you're experienced enough with the CLI, you can just simply use the Maven CLI directly
    • brew install maven on macOS (requires Homebrew to be installed)
    • sudo apt install maven on Debian-based Linux distributions
    • Follow the instructions here if you use Windows. (Honestly, I'd recommend just using IntelliJ IDEA if you're on Windows.)
  • AdoptOpenJDK 8 LTS + HotSpot (newer JDK versions also work, but I targeted JDK 8 here for compatibility reasons)

Building (IntelliJ IDEA)

  1. Clone the Git repository by running git clone https://github.com/akemin-dayo/BlueMapOfflineSkinSupport.git in a Terminal instance, or use a Git frontend like SourceTree.
  2. Open the cloned project directory in IntelliJ IDEA.
  3. Click on the Maven panel on the right side and go to "Lifecycle", then double-click on package.
  4. You will find your newly-built JAR in the /target/ folder.

Building (CLI)

git clone https://github.com/akemin-dayo/BlueMapOfflineSkinSupport.git
cd BlueMapOfflineSkinSupport
mvn package

You will then find your newly-built JAR in the /target/ folder.


Links


License

Licensed under the MIT License.


What's the difference between this, and the plugin "BlueMap Skins"?

When I initially noticed the problem with BlueMap and player skins on offline-mode Minecraft servers, I looked around to see if there was already an existing solution and found a plugin written by otDan called BlueMap Skins (which I will call BMS from hereon forward) that claimed to fix the problem.

While it did technically do that, there were unfortunately… a few major issues with BMS that made it unsuitable for my use.

  1. It is not possible to configure the web root directory that BMS writes to. It's hard-coded to use bluemap/web. I figured that this at least could be… worked around via symlinks and was about to move on, but then I found another bug…
  2. I have my Minecraft server (which uses Multiverse) configured to use a world container, so that all the worlds on the server go in a subdirectory (/worlds/ in my case), which makes everything much neater. Unfortunately, BMS appears to attempt to derive the root directory of the Minecraft server by using getWorldContainer(), which results in it incorrectly writing to the /worlds/ subdirectory. (🍍˃̶͈̀ロ˂̶͈́)੭ꠥ⁾⁾ But again, with symlinks, this too can be worked around, I thought… until I discovered the next issue.
  3. For any player that is using a custom SkinsRestorer skin, BMS will incorrectly treat the skin name as a player name(!?!?), causing a completely incorrect player head to be generated. This issue was really what made BMS unusable for me.

There were various other minor issues, too (for instance, the generated images are 20 times larger than they should be, and so on), but the above 3 were what bothered me the most. Of course, I looked around to see if the plugin was open-source, so I could help fix these issues, but it was not.

At this point, I figured it'd be easier to just write my own plugin from scratch, and so… that's what I did. After a few hours, this project was finished, and now you're seeing it here.

 

Disclaimer: While BlueMapOfflineSkinSupport contains only my own original code/implementation, technically the core idea of "just simply overwrite the player head images in BlueMap's webroot" was otDan's to begin with, so I decided to speak with him first to notify him of this project and make sure he was okay with me releasing it publicly. He gave his full approval.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    473680
  • Created
    Apr 19, 2021
  • Last Released File
    Jul 16, 2021
  • Total Downloads
    248
  • License

Categories

Members

Recent Files