Git Product home page Git Product logo

bluemapfloodgate's Introduction

BlueMap Floodgate

GitHub Total Downloads Servers using this plugin

A Minecraft Paper plugin and BlueMap addon that adds Geyser/Floodgate support: by default, floodgate players don't have the correct playerhead image on BlueMap. This plugin fixes that.

Without With
without the plugin with the plugin

Support

To get support with this plugin, join the BlueMap Discord server and ask your questions in #3rd-party-support. You're welcome to ping me, @TechnicJelle.

Special thanks to

Camotoy for their open-source plugins that gave me great examples to learn from.
And TBlueF of course for his amazing plugin and fast support with my silly questions!

bluemapfloodgate's People

Contributors

lebestnoob avatar sofianedjerbi avatar technicjelle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bluemapfloodgate's Issues

Fabric mod port

May I ask for a port for the fabric version of BlueMap?
Thank you!

Doesnt work

How the title says. It doesn't work on the latest version of bluemap/minecraft/floodgate. I installed floodgate, bluemap and this plugin on my server and it's not working. It downloads the skin file correctly and prints, that the plugin replaces the skin file with floodgate's, but it just doesn't do it. I tried force-updating and switch to the other api in the config.

exception

Dec 31, 2021 @ 00:04:20.445 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
-- | --

  | Dec 31, 2021 @ 00:04:20.445 | at java.lang.Thread.run(Thread.java:833) ~[?:?]

  | Dec 31, 2021 @ 00:04:20.444 | at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.18.1.jar:git-Paper-112]

  | Dec 31, 2021 @ 00:04:20.444 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]

  | Dec 31, 2021 @ 00:04:20.435 | at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.1.jar:git-Paper-112]

  | Dec 31, 2021 @ 00:04:20.435 | at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.18.1.jar:git-Paper-112]

  | Dec 31, 2021 @ 00:04:20.434 | at java.util.Optional.ifPresentOrElse(Optional.java:196) ~[?:?]

  | Dec 31, 2021 @ 00:04:20.434 | at net.mctechnic.bluemapfloodgate.main.lambda$onJoin$5(main.java:161) ~[BlueMapFloodgate-1.3.6-BETA.jar:?]

  | Dec 31, 2021 @ 00:04:20.434 | at net.mctechnic.bluemapfloodgate.main.lambda$onJoin$3(main.java:162) ~[BlueMapFloodgate-1.3.6-BETA.jar:?]

  | Dec 31, 2021 @ 00:04:20.426 | at net.mctechnic.bluemapfloodgate.main.floodgateJoin(main.java:200) ~[BlueMapFloodgate-1.3.6-BETA.jar:?]

  | Dec 31, 2021 @ 00:04:20.414 | at net.mctechnic.bluemapfloodgate.main.getHeadToOwnDirectory(main.java:216) ~[BlueMapFloodgate-1.3.6-BETA.jar:?]

  | Dec 31, 2021 @ 00:04:20.413 | java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsString()" because the return value of "com.google.gson.JsonObject.get(String)" is null

  | Dec 31, 2021 @ 00:04:20.413 | at net.mctechnic.bluemapfloodgate.main.getTextureID(main.java:240) ~[BlueMapFloodgate-1.3.6-BETA.jar:?]

  | Dec 31, 2021 @ 00:04:20.412 | [05:04:20 WARN]: [BlueMapFloodgate] Plugin BlueMapFloodgate v1.3.6-BETA generated an exception while executing task 150897

NoSuchFileException

smp_1             | [15:19:31 INFO]: [BlueMapFloodgate] Overwriting BlueMap's head with floodgate head
smp_1             | [15:19:31 WARN]: java.nio.file.NoSuchFileException: plugins/BlueMapFloodgate/playerheads/00000000-0000-0000-0009-<removed user uuid partials>.png
smp_1             | [15:19:31 WARN]:    at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
smp_1             | [15:19:31 WARN]:    at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
smp_1             | [15:19:31 WARN]:    at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
smp_1             | [15:19:31 WARN]:    at java.base/sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:548)
smp_1             | [15:19:31 WARN]:    at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258)
smp_1             | [15:19:31 WARN]:    at java.base/java.nio.file.Files.copy(Files.java:1305)
smp_1             | [15:19:31 WARN]:    at BlueMapFloodgate-1.3.3-BETA.jar//net.mctechnic.bluemapfloodgate.main.floodgateJoin(main.java:207)      
smp_1             | [15:19:31 WARN]:    at BlueMapFloodgate-1.3.3-BETA.jar//net.mctechnic.bluemapfloodgate.main.lambda$new$0(main.java:115)       
smp_1             | [15:19:31 WARN]:    at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101)
smp_1             | [15:19:31 WARN]:    at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
smp_1             | [15:19:31 WARN]:    at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)   
smp_1             | [15:19:31 WARN]:    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
smp_1             | [15:19:31 WARN]:    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
smp_1             | [15:19:31 WARN]:    at java.base/java.lang.Thread.run(Thread.java:833)

Add caching

IDEA 1
Make an empty file in the /assets/playerheads/ directory with the same name as the UUID of the player when the skin is grabbed. When a player joins, first check if that file exists.
Maybe check the creation time of that file when a player logs in too, and check if it's already X (config) amount of time old, and if it is, delete the file and let the skin be refreshed.

BlueMap overwrites playerhead file again because of cache

Because of caching, the BlueMap playerhead isn't overwritten every time any more, but now it changes back to Steve, because BlueMap overwrites the overwritten file again.

FIX IDEA:
Store the grabbed playerheads in own plugin folder and overwrite on every join again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.