-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more player stat fields #20
Labels
good first issue
Good for newcomers
hacktoberfest
help wanted
Extra attention is needed
important
Issues that should be focused on
Comments
builder-247
added
help wanted
Extra attention is needed
good first issue
Good for newcomers
labels
Sep 10, 2018
Working on Warlords. |
builder-247
added a commit
that referenced
this issue
Feb 12, 2020
builder-247
added a commit
that referenced
this issue
Feb 14, 2020
This was
linked to
pull requests
Mar 13, 2020
Closed
This was
unlinked from
pull requests
Mar 13, 2020
Closed
Closed
Closed
Merged
More skywars stats added in #679 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Good for newcomers
hacktoberfest
help wanted
Extra attention is needed
important
Issues that should be focused on
processPlayerData handles modifying the player object from Hypixel API to the wanted format.
The game specific objects are created using the functions
processStats
object. You can assign default values by adding an equal sign in object parameters e.g.coins = 0
defaults the coins value to 0. The return statement return the stats object for the minigame. If (and when) some field's name needs to be changed, it can be achieved as described below:This would return the
coins
field with the namekills
.For an example adding kills and deaths fields to Warlords,
processors/games/Battleground.js
file should be modified in the following way:Example (TKR stats)
Resources for stats to be added:
Progress:
The text was updated successfully, but these errors were encountered: