Jump to content

Displaying data on the scoreboard


Noki

Recommended Posts

Posted

Hi,

I've added my columns, done all of that. But, I have no idea how to output the data onto the scoreboard column. Say I want to output players' money on to the scoreboard, how would I do that?

Posted
setElementData 

You literally just set the players element data for whatever the scoreboard column is called to the value. In other words:

If your scoreboard column is called "money", then you would do setElementData(playerElementHere, "money", moneyValuehere)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...