#[RESOLVED] soilScoreboard

1 messages · Page 1 of 1 (latest)

gentle turret
#

I setup an artifact and just build it

#

ima send sss

#

ss

wary idol
#

Full window please

#

right side's missing

gentle turret
wary idol
#

Double-click "soilScoreboards compile output" to add it to the final jar, rebuild, add to plugins/, reload.

gentle turret
#

I would also need Fastboard in my plugins folder, correct?

wary idol
#

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.

gentle turret
wary idol
#

Yes, you most definitely need that in your plugins folder.

gentle turret
#

Alright]

#

this isnt from my plug tho

#

ehh I don't understad the dev

#

1.19 support

#

added 1.18 support

wary idol
#

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.

gentle turret
#

alright

#

which?

wary idol
#

Oh, you've got maven set up with your plugin? Well, then use the Maven one.

gentle turret
#

Im using the Minecraft Development plugin

wary idol
#

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.

gentle turret
#

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

wary idol
#

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.

gentle turret
#

I should organize it but not rn

wary idol
#

Just shove them into the util package and that's good enough, xD.

#

Happy to see that you got it working now! :)

gentle turret
#

I am learning, slowly but surely

#

[RESOLVED] soilScoreboard

#

also, quick question @wary idol

#

how could I use papi

#

for stuff like this

wary idol
#

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

gentle turret
#

Alright

wary idol
#

PlaceholderAPI.setPlaceholders(scoreboardViewingPlayer, Text)

gentle turret
wary idol
#

Which then returns the text with all variables substituted.

wary idol
#

Just do what I described above.

gentle turret
wary idol
#

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.

wary idol
#

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.

gentle turret
#

This is rlly confusing me, im so srry

wary idol
#

Well, then you shouldn't be starting out with something as complicated as a scoreboard right away. Maybe experiment with simple commands first.

gentle turret
#

Those are boring

#

and that's not needed for my SMP

#

Getting closer but I just need an input