Skip to content

Commit 27e47c9

Browse files
committed
feat: switch to UUID generation, player heads display
1 parent 08c191b commit 27e47c9

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

docs/generateCards.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function fetchPunishments() {
88
card.className = 'card';
99

1010
const img = document.createElement('img');
11-
img.src = `https://mc-heads.net/avatar/${punishment.name}/100`;
11+
img.src = `https://mc-heads.net/avatar/${punishment.uuid}/100`;
1212
img.alt = `${punishment.name}'s head`;
1313

1414
const h2 = document.createElement('h2');

docs/jail.png

882 KB
Loading

docs/punishments.json

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
[
2+
{
3+
"name": "SavageDylan101",
4+
"uuid": "661cdd04-b2f1-4718-a1f2-c9806cb20dce",
5+
"punishmentDate": 1601078400000
6+
},
7+
{
8+
"name": "PhilipThePigeon",
9+
"uuid": "3dc644b2-39c6-4ad7-8c6a-94f699771d24",
10+
"punishmentDate": 1616417640000
11+
},
12+
{
13+
"name": "Simpin4Netherite",
14+
"uuid": "3dded9ae-d7ac-4698-921f-944490483745",
15+
"punishmentDate": 1617287640000
16+
},
217
{
318
"name": "BORZ_CHIMAEV",
419
"uuid": "8e6302d0445346ea9ecd855bc615988c",

0 commit comments

Comments
 (0)