Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Commit 674f025

Browse files
authored
Merge pull request #873 from UnicacityAddon/develop
Release v2.5.0
2 parents 6bd70ca + 944f909 commit 674f025

92 files changed

Lines changed: 9 additions & 6516 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
- 'hotfix/**'
88
pull_request:
99
branches:
10-
- 'main'
1110
- 'develop'
1211
- 'hotfix/**'
1312
workflow_dispatch:

.github/workflows/wiki.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
- 'hotfix/**'
88
pull_request:
99
branches:
10-
- 'main'
1110
- 'develop'
1211
- 'hotfix/**'
1312
workflow_dispatch:

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ and on the other hand the support for Minecraft version 1.16.5+.
4343
### Supported Versions
4444

4545
> In LabyMod 3 there was no command implementation, so there was used Minecraft Forge for this. In LabyMod 4 is an own
46-
> command implementation so Minecraft Forge isn't longer needed.
46+
> command implementation so Minecraft Forge is no longer needed.
4747
4848
#### LabyMod 3
4949

@@ -60,12 +60,6 @@ Requires Minecraft Forge: ❌<br>
6060
Supported Minecraft versions:
6161

6262
- `1.12.2`
63-
- `1.16.5`
64-
- `1.17.1`
65-
- `1.18.2`
66-
- `1.19.2`
67-
- `1.19.3`
68-
- `1.19.4`
6963

7064
## Installation
7165

api/src/main/java/com/rettichlp/unicacityaddon/api/AutoNC.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

build.gradle.kts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "com.rettichlp.unicacityaddon"
8-
version = "2.4.1"
8+
version = "2.5.0"
99

1010
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
1111

@@ -16,21 +16,13 @@ labyMod {
1616
displayName = "UnicacityAddon"
1717
author = "RettichLP & Dimiikou"
1818
description = "UnicacityAddon is a LabyMod addon written for the Minecraft server Unicacity and provides specialized, nice-to-have features and utilities for everyday gameplay."
19-
minecraftVersion = "1.12.2<*"
20-
version = System.getenv().getOrDefault("VERSION", "2.4.1")
19+
minecraftVersion = "1.12.2"
20+
version = System.getenv().getOrDefault("VERSION", "2.5.0")
2121
}
2222

2323
minecraft {
2424
registerVersions(
25-
"1.8.9",
26-
"1.12.2",
27-
"1.16.5",
28-
"1.17.1",
29-
"1.18.2",
30-
"1.19.2",
31-
"1.19.3",
32-
"1.19.4",
33-
"1.20.1"
25+
"1.12.2"
3426
) { version, provider ->
3527
configureRun(provider, version)
3628
}

core/src/main/java/com/rettichlp/unicacityaddon/UnicacityAddon.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
* user-friendliness, an update should not always have to be created for changes to content-related data. I utilize an
4040
* API to provide data, leveraging a private server. Data is available for the following purposes:
4141
* <ul>
42-
* <li>activity check <a href="https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/activitycheck/LEMILIEU/add">API</a> (unauthorized)</li>
43-
* <li>auto nc <a href="https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/autonc">API</a> (unauthorized)</li>
4442
* <li>addon groups <a href="https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/player">API</a></li>
4543
* <li>banners <a href="https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/banner">API</a></li>
4644
* <li>blacklist reasons <a href="https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/blacklistreason/LEMILIEU">API</a> (unauthorized)</li>

core/src/main/java/com/rettichlp/unicacityaddon/base/builder/ActivityCheckBuilder.java

Lines changed: 0 additions & 89 deletions
This file was deleted.

core/src/main/java/com/rettichlp/unicacityaddon/base/enums/Activity.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

core/src/main/java/com/rettichlp/unicacityaddon/base/enums/api/ApplicationPath.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
@AllArgsConstructor
1111
public enum ApplicationPath {
1212

13-
ACTIVITY_CHECK("/activitycheck"),
14-
AUTO_NC("/autonc"),
1513
BANNER("/banner"),
1614
BLACKLISTREASON("/blacklistreason"),
1715
BLACKMARKETLOCATION("/blackmarket"),

core/src/main/java/com/rettichlp/unicacityaddon/base/io/api/API.java

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.rettichlp.unicacityaddon.base.io.api;
22

33
import com.rettichlp.unicacityaddon.UnicacityAddon;
4-
import com.rettichlp.unicacityaddon.api.AutoNC;
54
import com.rettichlp.unicacityaddon.api.BlackMarketLocation;
65
import com.rettichlp.unicacityaddon.api.BlacklistReason;
76
import com.rettichlp.unicacityaddon.api.NaviPoint;
@@ -17,15 +16,11 @@
1716
import com.rettichlp.unicacityaddon.api.player.Player;
1817
import com.rettichlp.unicacityaddon.api.player.PlayerEntry;
1918
import com.rettichlp.unicacityaddon.api.statistic.Statistic;
20-
import com.rettichlp.unicacityaddon.api.statisticTop.StatisticTop;
2119
import com.rettichlp.unicacityaddon.base.AddonPlayer;
2220
import com.rettichlp.unicacityaddon.base.builder.RequestBuilder;
23-
import com.rettichlp.unicacityaddon.base.enums.Activity;
2421
import com.rettichlp.unicacityaddon.base.enums.api.AddonGroup;
2522
import com.rettichlp.unicacityaddon.base.enums.api.ApplicationPath;
2623
import com.rettichlp.unicacityaddon.base.enums.api.StatisticType;
27-
import com.rettichlp.unicacityaddon.base.enums.faction.DrugPurity;
28-
import com.rettichlp.unicacityaddon.base.enums.faction.DrugType;
2924
import com.rettichlp.unicacityaddon.base.enums.faction.Faction;
3025
import com.rettichlp.unicacityaddon.base.services.NotificationService;
3126
import com.rettichlp.unicacityaddon.base.text.PatternHandler;
@@ -61,8 +56,6 @@
6156
* user-friendliness, an update should not always have to be created for changes to content-related data. I utilize an
6257
* API to provide data, leveraging a private server. Data is available for the following purposes:
6358
* <ul>
64-
* <li>activity check <a href="https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/activitycheck/LEMILIEU/add">API</a> (unauthorized)</li>
65-
* <li>auto nc <a href="https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/autonc">API</a> (unauthorized)</li>
6659
* <li>addon groups <a href="https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/player">API</a></li>
6760
* <li>banners <a href="https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/banner">API</a></li>
6861
* <li>blacklist reasons <a href="https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/blacklistreason/LEMILIEU">API</a> (unauthorized)</li>
@@ -120,8 +113,6 @@ public class API {
120113
private final Map<String, Faction> playerFactionMap = new HashMap<>();
121114
private final Map<String, Integer> playerRankMap = new HashMap<>();
122115

123-
@Setter
124-
private List<AutoNC> autoNCList = new ArrayList<>();
125116
@Setter
126117
private List<BlacklistReason> blacklistReasonList = new ArrayList<>();
127118
@Setter
@@ -163,7 +154,6 @@ public void sync(AddonPlayer addonPlayer) {
163154

164155
// load api data
165156
this.loadPlayerData();
166-
this.autoNCList = this.sendAutoNCRequest();
167157
this.blacklistReasonList = this.sendBlacklistReasonRequest();
168158
this.blackMarketLocationList = this.sendBlackMarketLocationRequest();
169159
this.houseBanList = this.sendHouseBanRequest(this.addonPlayer.getFaction().equals(Faction.RETTUNGSDIENST));
@@ -228,51 +218,6 @@ private void loadPlayerData() {
228218
}
229219
}
230220

231-
public List<AutoNC> sendAutoNCRequest() {
232-
return RequestBuilder.getBuilder(this.unicacityAddon)
233-
.preCondition(false) // deactivated because Unicacity guidelines
234-
.nonProd(this.unicacityAddon.configuration().local().get())
235-
.applicationPath(ApplicationPath.AUTO_NC)
236-
.getAsJsonArrayAndParse(AutoNC.class);
237-
}
238-
239-
public void sendAutoNCAddRequest(String words, String answer) {
240-
RequestBuilder.getBuilder(this.unicacityAddon)
241-
.nonProd(this.unicacityAddon.configuration().local().get())
242-
.applicationPath(ApplicationPath.AUTO_NC)
243-
.subPath(ADD_SUB_PATH)
244-
.parameter(Map.of(
245-
"words", words,
246-
"answer", answer))
247-
.sendAsync();
248-
}
249-
250-
public void sendAutoNCRemoveRequest(Long id) {
251-
RequestBuilder.getBuilder(this.unicacityAddon)
252-
.nonProd(this.unicacityAddon.configuration().local().get())
253-
.applicationPath(ApplicationPath.AUTO_NC)
254-
.subPath(REMOVE_SUB_PATH)
255-
.parameter(Map.of(
256-
"id", String.valueOf(id)))
257-
.sendAsync();
258-
}
259-
260-
public void sendActivityCheckActivity(Activity activity, String type, String value, DrugType drugType, DrugPurity drugPurity, Long date, String screenshot) {
261-
RequestBuilder.getBuilder(this.unicacityAddon)
262-
.nonProd(this.unicacityAddon.configuration().local().get())
263-
.applicationPath(ApplicationPath.ACTIVITY_CHECK)
264-
.subPath(this.addonPlayer.getFaction() + "/add")
265-
.parameter(Map.of(
266-
"activity", String.valueOf(activity),
267-
"type", Optional.ofNullable(type).orElse("").replace(" ", "-"),
268-
"value", Optional.ofNullable(value).orElse("").replace(" ", "-"),
269-
"drugType", Optional.ofNullable(drugType).map(DrugType::name).orElse(""),
270-
"drugPurity", String.valueOf(Optional.ofNullable(drugPurity).map(DrugPurity::getPurity).orElse(-1)),
271-
"date", String.valueOf(Optional.ofNullable(date).orElse(0L)),
272-
"screenshot", Optional.ofNullable(screenshot).orElse("").replace(" ", "-")))
273-
.sendAsync();
274-
}
275-
276221
public void sendBannerAddRequest(@NotNull Faction faction, int x, int y, int z, String naviPoint) {
277222
RequestBuilder.getBuilder(this.unicacityAddon)
278223
.nonProd(this.unicacityAddon.configuration().local().get())
@@ -582,14 +527,6 @@ public void sendStatisticAddRequest(StatisticType statisticType) {
582527
.sendAsync();
583528
}
584529

585-
public StatisticTop sendStatisticTopRequest() {
586-
return RequestBuilder.getBuilder(this.unicacityAddon)
587-
.nonProd(this.unicacityAddon.configuration().local().get())
588-
.applicationPath(ApplicationPath.STATISTIC)
589-
.subPath(TOP_SUB_PATH)
590-
.getAsJsonObjectAndParse(StatisticTop.class);
591-
}
592-
593530
public void sendTokenCreateRequest(Token token) throws APIResponseException, IOException {
594531
File addonFile = getAddonFile();
595532
RequestBuilder.getBuilder(this.unicacityAddon)

0 commit comments

Comments
 (0)