jpenilla / squaremap

squaremap is a minimalistic and lightweight world map viewer for Minecraft servers, using the vanilla map rendering style
https://modrinth.com/plugin/squaremap
Other
344 stars 41 forks source link

Add Support for the SkinsRestorer and PlaceholderAPI plugin #267

Closed BAD7777 closed 3 months ago

BAD7777 commented 3 months ago

Idea and Proposal for the Squaremap Plugin

Add Support for the SkinsRestorer Plugin

Idea Description:

I propose adding support for the SkinsRestorer plugin to the Squaremap interactive map plugin. This will allow the use of PlaceholderAPI to retrieve player skin data, rather than being limited to only {uuid} and {name} values. This enhancement will expand the customization and personalization capabilities of the player display on the map.

Technical Details:

  1. Integration with PlaceholderAPI:

    • Enable the use of PlaceholderAPI in Squaremap's configuration, allowing placeholders to be specified for skin display.
    • Example configuration:

      heads-url: "https://mc-heads.net/avatar/%skinsrestorer_texture_id_or_steve%.png"
  2. Data Handling:

    • Implement logic to correctly process placeholders from PlaceholderAPI and substitute the appropriate values in the URL for fetching player skins.
    • Ensure that default values (e.g., Steve's skin) are used when placeholder data is not available.
  3. Requirements:

    • Ensure that PlaceholderAPI is installed.
    • Ensure that SkinsRestorer is installed.

Example Usage:

Advantages:

Conclusion:

Adding support for the SkinsRestorer plugin and PlaceholderAPI in Squaremap will significantly enhance the functionality and customization flexibility of the plugin. This will enable server administrators to more accurately and personally display player skins on the interactive map, improving the overall map experience.

jpenilla commented 3 months ago

https://github.com/jpenilla/squaremap-addons/tree/master/addons/skins