Suggestions

Back

update api



koloja koloja: 5 months 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: 5 months 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: 5 months ago

Yes

koloja koloja: 5 months ago

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

zNotChill zNotChill: 5 months ago

just make your own api

XHexiX XHexiX: 5 months ago

Maybe also the mods they are using

koloja koloja: 5 months ago

im not smart like you

zNotChill zNotChill: 5 months ago

if you really want it then I'll make one

koloja koloja: 5 months ago

sure

XHexiX XHexiX: 5 months ago

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

koloja koloja: 5 months ago

that seems useless

zNotChill zNotChill: 5 months ago

how am I supposed to do that lol

XHexiX XHexiX: 5 months ago

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

zNotChill zNotChill: 5 months 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: 5 months 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: 5 months ago

i will add more soon btw

XHexiX XHexiX: 5 months ago

permission to try to use it

XHexiX XHexiX: 5 months ago

and that design isnt brain dead

zNotChill zNotChill: 5 months ago

go ahead

zNotChill zNotChill: 5 months ago

just don't flood my servers pls

XHexiX XHexiX: 5 months ago

i wont

XHexiX XHexiX: 5 months ago

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

XHexiX XHexiX: 5 months ago

meh i cant be bothered im tired and dumb

koloja koloja: 5 months 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: 5 months 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: 5 months 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: 5 months ago

`"&a&lVIP &aSolarSkripts"`

XHexiX XHexiX: 5 months ago

...

zNotChill zNotChill: 5 months ago

I can fix this

zNotChill zNotChill: 5 months ago

Ill add servers tonight

XHexiX XHexiX: 5 months ago

you should add colors for ranks

zNotChill zNotChill: 5 months ago

I will

Supercrafter100 Supercrafter100: 5 months ago

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

XHexiX XHexiX: 5 months ago

Nice

zNotChill zNotChill: 4 months ago

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

koloja koloja: 4 months ago

cool

zNotChill zNotChill: 4 months ago

give me suggestions on what to add

Search Keyword


Suggestion

Views
477
Likes
4
Dislikes
0
Category
Unassigned
Status
Open