Minecraft - Java | Change content by command?

Jo
- in Plugins
3

I'm currently programming a plugin that can be used to change the content of a label by command.

I have already tried a little and looked on the Internet, but I have not come up with a solution.

With the command "stopserver" the string "Open-Wold" should be changed to "Offline" or "Online" in a config, which also works great.

Now I want to change a sign that goes with it, so that if the string in the config is e.g. "Offline" is changed, the sign changes to "Server offline".

Br

As far as I know, you just have to "get" the sign. Then you can actually shield # setLine ("…"); use.

Then use shield # update ().

Jo

I have already tried that. Can you send me how you would "get" the sign? I took the block at the given location and cast it as a sign… But it didn't work.

Jo

Uff ich dulli… I imported the material and not the block… Now works thanks: *