Skip to content

Commit aa22619

Browse files
authored
Merge pull request #9 from TheMatrixNetwork/feature/matridex
Feature/matridex
2 parents 8b56a73 + 1c9a12a commit aa22619

5 files changed

Lines changed: 29 additions & 19 deletions

File tree

.github/workflows/angular.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
working-directory: ./frontend
1919

2020
steps:
21-
- uses: actions/checkout@v1
22-
- uses: actions/setup-node@v1 #this installs node and npm for us
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-node@v3 #this installs node and npm for us
2323
with:
2424
node-version: "16.x"
2525

26-
- uses: actions/cache@v1 # this allows for re-using node_modules caching, making builds a bit faster.
26+
- uses: actions/cache@v3 # this allows for re-using node_modules caching, making builds a bit faster.
2727
with:
2828
path: ~/.npm
2929
key: ${{ runner.os }}-nodejs-${{ hashFiles('**/package-lock.json') }}

.github/workflows/gradle.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- 'frontend/**'
88

99
env:
10-
COPY_JARFILE_TO: '/Minecraft/Hardcore/plugins/ /Minecraft/Classic/plugins/'
10+
COPY_JARFILE_TO: '/Minecraft/Hardcore/plugins/'
1111

1212
jobs:
1313
build:
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Set up JDK 17
23-
uses: actions/setup-java@v1
23+
uses: actions/setup-java@v3
2424
with:
2525
java-version: 17
2626

@@ -63,7 +63,7 @@ jobs:
6363

6464
steps:
6565
- name: Set up JDK 17
66-
uses: actions/setup-java@v1
66+
uses: actions/setup-java@v3
6767
with:
6868
java-version: 17
6969

@@ -153,7 +153,7 @@ jobs:
153153

154154
steps:
155155
- name: Set up JDK 17
156-
uses: actions/setup-java@v1
156+
uses: actions/setup-java@v3
157157
with:
158158
java-version: 17
159159

frontend/src/app/components/player-status/player-status.component.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,34 @@
2323
<div>
2424
<div class="flex justify-between items-center">
2525
<img ngSrc="assets/img/Slimeball_JE2_BE2.webp" width="40" height="40">
26-
<p style="font-size: 35px;" class="ml-4">{{latestPlayerStats.sfLevel}}</p>
26+
<p style="font-size: 35px;" class="ml-4">{{latestPlayerStats.sfTitle}}</p>
2727
</div>
2828
<div class="flex justify-between items-center mt-4">
2929
<img ngSrc="assets/img/minecraft-diamond.webp" width="40" height="40">
3030
<p style="font-size: 35px;" class="ml-4">{{latestPlayerStats.threatTier}}</p>
3131
</div>
3232
<div class="flex justify-between items-center mt-4">
3333
<img ngSrc="assets/img/crossed-swords.png" width="40" height="40">
34-
<p style="font-size: 35px;" class="ml-4">{{latestPlayerStats.guildRank}}</p>
34+
<p style="font-size: 35px;" class="ml-4">{{latestPlayerStats.guildRankName}}</p>
3535
</div>
3636
<div class="flex justify-between items-center mt-4">
3737
<img ngSrc="assets/img/medal.png" width="50" height="50">
38-
<p style="font-size: 35px;" class="ml-4">{{latestPlayerStats.prestige}}</p>
38+
<p style="font-size: 35px;" class="ml-4">{{latestPlayerStats.threatTier}}</p>
3939
</div>
4040
</div>
4141
<div class="inline-block h-[320px] min-h-[1em] w-0.5 self-stretch bg-black opacity-100"></div>
4242
<div>
4343
<div class="flex justify-between items-center">
4444
<img ngSrc="assets/img/mcmmo.jpeg" width="40" height="40">
45-
<p style="font-size: 35px;" class="ml-4">--</p>
45+
<p style="font-size: 35px;" class="ml-4">{{latestPlayerStats.mcmmoPower}}</p>
4646
</div>
4747
<div class="flex justify-between items-center mt-4">
4848
<img ngSrc="assets/img/potion.webp" width="40" height="40">
49-
<p style="font-size: 35px;" class="ml-4">--</p>
49+
<p style="font-size: 35px;" class="ml-4">{{latestPlayerStats.mageRank}}</p>
5050
</div>
5151
<div class="flex justify-between items-center mt-4">
5252
<img ngSrc="assets/img/skills.png" width="60" height="50">
53-
<p style="font-size: 35px;" class="ml-4">--</p>
53+
<p style="font-size: 35px;" class="ml-4">{{latestPlayerStats.skillClass}} ({{latestPlayerStats.skillLevel}})</p>
5454
</div>
5555
<div class="flex justify-between items-center mt-4">
5656
<p style="font-size: 35px;" class="ml-4 text-white" >.</p>

frontend/src/app/components/player-status/player-status.component.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ export class PlayerStatusComponent implements OnInit, OnChanges {
2323
lastDamageCause: "",
2424
remainingAir: 0,
2525
timeStamp: "",
26-
guildRank: 0,
26+
guildRankName: "",
2727
threatTier: 0,
28-
sfLevel: 0,
29-
prestige: 0
28+
sfTitle: "",
29+
skillLevel: 0,
30+
mcmmoPower: 0,
31+
skillClass: "",
32+
mageRank: "",
33+
element: "",
34+
matrik: 0
3035
}
3136
heartRows: number[] = []
3237
@Input() playerName: string = '';

frontend/src/app/models/player-stats.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ export interface PlayerStats {
1010
lastDamageCause: string,
1111
remainingAir: number,
1212
timeStamp: string,
13-
guildRank: number,
13+
guildRankName: string,
1414
threatTier: number,
15-
sfLevel: number,
16-
prestige: number
15+
sfTitle: string,
16+
mcmmoPower: number,
17+
mageRank: string,
18+
skillClass: string,
19+
skillLevel: number,
20+
element: string,
21+
matrik: number
1722
}

0 commit comments

Comments
 (0)