Suggestions

Back

update api



koloja koloja: about 1 year ago

Add some things like username_full to show
username_full": "&b&lGod&b koloja"
and add like version_client to show
"version_client": "1.20.2" next to "version_protocol": 764,
on https://api.playerservers.com/player/{UUID}
It would help shorten alot of skripts i make and its not realy needed but would be a cool update.


4
0

Comments

koloja koloja: about 1 year ago

It would look a bit like this
```json
{
"player": {
"uuid": "9f34a6ab-02da-47ca-8d59-828ea0e66280",
"username": "koloja",
"username_full": "&b&lGod&b koloja",
"online": true,
"server": "PS_Terbium",
"first_join": 1550513442508,
"last_logout": 1701032401891,
"points": 1828,
"exp": 1206,
"level": "9",
"version_protocol": 764,
"version_client": "1.20.2",
"guild_name": "nub",
"groups": [
"god",
"default"
]
}
}
```

XHexiX XHexiX: about 1 year ago

Yes

koloja koloja: about 1 year ago

it would also be cool if you could add the nick of the player or even the chatcolour

zNotChill zNotChill: about 1 year ago

just make your own api

XHexiX XHexiX: about 1 year ago

Maybe also the mods they are using

koloja koloja: about 1 year ago

im not smart like you

zNotChill zNotChill: about 1 year ago

if you really want it then I'll make one

koloja koloja: about 1 year ago

sure

XHexiX XHexiX: about 1 year ago

If you do add the mods they have such as essentials or badlion if that's possible

koloja koloja: about 1 year ago

that seems useless

zNotChill zNotChill: about 1 year ago

how am I supposed to do that lol

XHexiX XHexiX: about 1 year ago

It could help hold back people like Wolfe who hack where hacking isn't allowed

zNotChill zNotChill: about 1 year ago

I'll even add username support, but it will be a lot slower because I need to get the user's uuid from mojang api

zNotChill zNotChill: about 1 year ago
https://api.znotchill.me/api/cubed/user/koloja/
- either username or uuid works. if username isnt cached yet, it will take AGES to load. I will fix this tomorrow or when I next have time

https://api.znotchill.me/api/cubed/server/Mango
zNotChill zNotChill: about 1 year ago

i will add more soon btw

XHexiX XHexiX: about 1 year ago

permission to try to use it

XHexiX XHexiX: about 1 year ago

and that design isnt brain dead

zNotChill zNotChill: about 1 year ago

go ahead

zNotChill zNotChill: about 1 year ago

just don't flood my servers pls

XHexiX XHexiX: about 1 year ago

i wont

XHexiX XHexiX: about 1 year ago

imma try get it for versions for the auth skript im making

XHexiX XHexiX: about 1 year ago

meh i cant be bothered im tired and dumb

koloja koloja: about 1 year ago

sick
```json
{
"uuid": "9f34a6ab-02da-47ca-8d59-828ea0e66280",
"username": "koloja",
"activity": {
"online": false,
"first_join": 1550513442508,
"last_join": 1701036929402
},
"points": 1828,
"exp": 1206,
"level": 9,
"version": {
"protocol": 764,
"name": "1.20.2"
},
"server": null,
"ranks": [
"god",
"default"
]
}
```

Supercrafter100 Supercrafter100: about 1 year ago

As for the username_full, we cannot do this as this data isn't stored in our database (well it is in the luckperms one but that one runs isolated)

koloja koloja: about 1 year ago

```json
{
"server_count": 6,
"total_players_online": 7,
"servers": [
{
"name": "lobby",
"onlinePlayers": 1,
"players": [
"&a&lVIP &aSolarSkripts"
]
},
{
"name": "lobby2",
"onlinePlayers": 0,
"players": []
},
{
"id": "7f3a6e9738294e9f81667ae2e130016d",
"name": "VilmerCraftS1",
"online": true,
"maxPlayers": 15,
"onlinePlayers": 1,
"players": [
"&7CallmeSam_"
],
"boosters": 0,
"plan_name": "Free",
"plan_id": 1,
"software": "paper",
"version": "1.20",
"displayitem": "DIAMOND_SWORD",
"motd": "Officiella VilmerCraft S1",
"official": false,
"started": 1701064888774,
"visibility": true
},
{
"id": "7c8488fe38b3404391a2b772de6e64b4",
"name": "TNTWars",
"online": true,
"maxPlayers": 100,
"onlinePlayers": 2,
"players": [
"&7c1ownfish",
"&7MC_xplodingNOOB"
],
"boosters": 0,
"plan_name": "Official",
"plan_id": 12,
"software": "spigot",
"version": "1.12",
"displayitem": "TNT",
"motd": "CubedCraft Official TNTWars",
"official": true,
"started": 1701091559396,
"visibility": true
},
{
"id": "c843be877eeb47fd8f98ac75f6129543",
"name": "mccrypt2",
"online": true,
"maxPlayers": 15,
"onlinePlayers": 2,
"players": [
"&7josephnatuur",
"&7Porgly"
],
"boosters": 0,
"plan_name": "Free",
"plan_id": 1,
"software": "paper",
"version": "1.20",
"displayitem": "DIAMOND",
"motd": "...",
"official": false,
"started": 1701093482263,
"visibility": false
},
{
"id": "ebebb3a737b846dea4c79f79b0e3d9f2",
"name": "Purple",
"online": true,
"maxPlayers": 15,
"onlinePlayers": 1,
"players": [
"&7CanadianBagle"
],
"boosters": 0,
"plan_name": "Free",
"plan_id": 1,
"software": "paper",
"version": "1.20",
"displayitem": "DIAMOND",
"motd": "A CubedCraft Server",
"official": false,
"started": 1701095102526,
"visibility": true
}
]
}
```

https://api.playerservers.com/servers

koloja koloja: about 1 year ago

`"&a&lVIP &aSolarSkripts"`

XHexiX XHexiX: about 1 year ago

...

zNotChill zNotChill: about 1 year ago

I can fix this

zNotChill zNotChill: about 1 year ago

Ill add servers tonight

XHexiX XHexiX: about 1 year ago

you should add colors for ranks

zNotChill zNotChill: about 1 year ago

I will

Supercrafter100 Supercrafter100: about 1 year ago

it get's that info from a different service (networkcore) not the database

XHexiX XHexiX: about 1 year ago

Nice

zNotChill zNotChill: 12 months ago

forgot to say it but this is the stuff I added recently https://discord.com/channels/993979667264577669/1164619999642652674/1186030161762721892

koloja koloja: 12 months ago

cool

zNotChill zNotChill: 12 months ago

give me suggestions on what to add

Search Keyword


Suggestion

Views
920
Likes
4
Dislikes
0
Category
Unassigned
Status
Open