BadgeUp / badgeup-sponge-client

BadgeUp Sponge Client
https://www.badgeup.io/
MIT License
4 stars 1 forks source link

Command to create award JSON #25

Closed MarkHerhold closed 7 years ago

MarkHerhold commented 7 years ago

It's very difficult to figure out the JSON required to create an award, especially if it's modded.

Ideally we could have a command /badgeup awardthis which would serialize the item in the player's hand and create a link to the dashboard with the JSON data in a query parameter, e.g. https://dashboard.badgeup.io/#/awards/create?json={}.

Mohron commented 7 years ago

That would be a good idea! I would ask that you make a seperate /badgeup award add item and /badgeup award add inventory since a single award could a one item or a set of items that an admin could gather in there invetory before creating. You could also have a /badgeup award add command .

RobertHerhold commented 7 years ago

@Mohron Multiple different items would be multiple different BadgeUp awards, so I don't think that would be necessary. Good idea though!

Mohron commented 7 years ago

Well then just item and command.

Edit: I guess since it's json, I figured you could get away with adding an array of items...

RobertHerhold commented 7 years ago

create award function