#[RESOLVED] soilScoreboard
1 messages · Page 1 of 1 (latest)
Double-click "soilScoreboards compile output" to add it to the final jar, rebuild, add to plugins/, reload.
I would also need Fastboard in my plugins folder, correct?
Yes, as it's a dependency you're only compiling against, but the server has to provide it.
I don't know Fastboard tho, could be a different case.
Yes, you most definitely need that in your plugins folder.
Alright]
argh
this isnt from my plug tho
ehh I don't understad the dev
1.19 support
added 1.18 support
Oh wait, sorry
This is a library, not a plugin, I thought it was a library wrapped as a plugin, as many devs do, for ease of use.
Remove it from the plugins folder again and also double-click fastboard in the artifact window we talked about earlier, to include it into your final jar.
Oh, you've got maven set up with your plugin? Well, then use the Maven one.
Im using the Minecraft Development plugin
Yeah, that doesn't require you to create a maven plugin tho, which is why that wasn't obvious to me.
But yes, click the Maven one.
Restarting
err...
[19:17:05 ERROR]: [[SSB]] Plugin SoilScoreboards v${project.version} has failed to register events for class me.atticsoil.soilscoreboards.util.Scoreboard because fr/mrmicky/fastboard/FastBoard does not exist.
added that to my pluhin
FastBoard.java and FastReflection.java
Finally
Good lord that took long haha
but it's fixed
Now fix the colors
Haha :,D. Yeah, for small libs like these which only contain two classes, you can just simply copy paste the classes into your project rather than having to mess around with inclusion and shading.
Just shove them into the util package and that's good enough, xD.
Happy to see that you got it working now! :)
I am learning, slowly but surely
[RESOLVED] soilScoreboard
also, quick question @wary idol
how could I use papi
for stuff like this
You load the plugin, add the dependency to your POM and use the papi substitution method. I think there are docs out there for it, gimme a sec
Alright
PlaceholderAPI.setPlaceholders(scoreboardViewingPlayer, Text)
https://github.com/MilkBowl/VaultAPI - added this
Which then returns the text with all variables substituted.
No need to add Vault, IIRC, because PAPI is handling all placeholders which Vault registers.
Just do what I described above.
idk how & where to add this though
First of all, do this. Add the dependency so autocomplete works with PlaceholderAPI and you can compile.
Then, PlaceholderAPI.setPlaceholder(player, text) takes a string (text) IN and gives you that string with substituted variables OUT (returns it).
That should be enough for you to make it work.
done
He's using commands
What exactly does that change for you? Think abstractly. Where do you set the scoreboard for a player? There you have the player-variable ready. Then, you have to set the board lines somewhere. Wrap each line in the placeholder API call which substitutes variables. There you go.
This is rlly confusing me, im so srry
Well, then you shouldn't be starting out with something as complicated as a scoreboard right away. Maybe experiment with simple commands first.