Skip to content

Commit 21d5b2f

Browse files
author
BuildTools
committed
1.3.0, remove changelog stuff in update manager, fix ranked person not having a rank in auto guild welcome test
1 parent 9937165 commit 21d5b2f

6 files changed

Lines changed: 56 additions & 31 deletions

File tree

README.md

Lines changed: 53 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ From version 1.2.0, this mod requires the Hypixel Mod API which can be found [he
4646

4747
</details>
4848

49-
<details><summary>BedWars defusal helper</summary>
50-
51-
- Highlights redstone for the BedWars defusal challenge.
52-
53-
</details>
54-
5549
<details><summary>Limbo creative mode</summary>
5650

5751
- Automatically gives creative mode in Hypixel limbo, not bannable because the server does not listen to anything
@@ -117,6 +111,59 @@ Smaller features that change the game, similar to features in Patcher.
117111

118112
</details>
119113

114+
### BedWars
115+
116+
#### Challenges
117+
118+
<details><summary>BedWars defusal helper</summary>
119+
120+
- Highlights redstone for the BedWars defusal challenge.
121+
122+
</details>
123+
124+
#### Chat
125+
126+
<details><summary>Light green token messages</summary>
127+
128+
- Make token messages light green instead of green (only in bedwars) to make them appear different from emerald
129+
messages.
130+
131+
</details>
132+
133+
<details><summary>Hide slumber ticket messages</summary>
134+
135+
- Hide slumber ticket messages in-game from things like kills and wins.
136+
137+
</details>
138+
139+
<details><summary>Hide item pickup messages</summary>
140+
141+
- Hide "_You picked up: ..._" messages.
142+
143+
</details>
144+
145+
<details><summary>Hide silver coin count</summary>
146+
147+
- Hide the silver coin count from item purchase messages.
148+
149+
</details>
150+
151+
<details><summary>Hide comfy pillow messages</summary>
152+
153+
- Hides the following messages:
154+
- "You are now carrying x1 Comfy Pillows, bring it back to your shop keeper!"
155+
- "You cannot return items to another team's Shopkeeper!"
156+
- "You cannot carry any more Comfy Pillows!"
157+
- "You died while carrying 1x Comfy Pillows!"
158+
159+
</details>
160+
161+
<details><summary>Hide dreamer's soul fragment messages</summary>
162+
163+
- Hide "+1 Dreamer's Soul Fragment!" messages.
164+
165+
</details>
166+
120167
### TNT Tag
121168

122169
<details><summary>Bounty hunting</summary>

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
}
1313

1414
group = "at.yedel"
15-
version = "1.2.1"
15+
version = "1.3.0"
1616

1717
loom {
1818
runConfigs {

src/main/java/at/yedel/yedelmod/YedelMod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
public class YedelMod {
5555
public static final String modid = "yedelmod";
5656
public static final String name = "YedelMod";
57-
public static final String version = "1.2.1";
57+
public static final String version = "1.3.0";
5858
public static final Minecraft minecraft = Minecraft.getMinecraft();
5959

6060
@Instance

src/main/java/at/yedel/yedelmod/utils/update/UpdateManager.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,6 @@ public String getModrinthVersion(JsonArray modrinthApiInfo) {
9292
replace("\"", "");
9393
}
9494

95-
public String getModrinthChangelog(JsonArray modrinthApiInfo) {
96-
String changelog = modrinthApiInfo.get(0).getAsJsonObject().get("changelog").getAsString().replace("'", "");
97-
int indexOfChangelog = changelog.indexOf("The part below is for the in-game changelog, ignore this on the website!\n");
98-
if (indexOfChangelog == -1) {
99-
return "Changelog not found!";
100-
}
101-
else return changelog.substring(indexOfChangelog + 73);
102-
}
103-
10495
public JsonObject getGithubApiInfo() throws IOException {
10596
return Requests.getJsonObject(githubApiUrl);
10697
}
@@ -113,15 +104,6 @@ public String getGithubVersion(JsonObject githubApiInfo) {
113104
replace("\"", "");
114105
}
115106

116-
public String getGithubChangelog(JsonObject githubApiInfo) {
117-
String body = githubApiInfo.get("body").getAsString().replace("'", "");
118-
int indexOfChangelog = body.indexOf("The part below is for the in-game changelog, ignore this on the website!\r\n");
119-
if (indexOfChangelog == -1) {
120-
return "Changelog not found!";
121-
}
122-
else return body.substring(indexOfChangelog + 74);
123-
}
124-
125107
public void notifyUpToDate(String updateSource, FeedbackMethod feedbackMethod) {
126108
if (feedbackMethod == FeedbackMethod.CHAT) {
127109
Chat.logoDisplay("§cYou are up to date with the mod version on " + updateSource + "!");

src/test/java/at/yedel/yedelmodtest/FeatureTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void testGuildJoinPattern() {
2222
Assertions.assertEquals(newMember, "nonrankedperson");
2323
}
2424

25-
String msg2 = "rankedperson joined the guild!";
25+
String msg2 = "[MVP+] rankedperson joined the guild!";
2626
Matcher guildJoinMatcher2 = guildJoinPattern.matcher(msg2);
2727
while (guildJoinMatcher.find()) {
2828
String newMember = guildJoinMatcher2.group("newMember");

src/test/java/at/yedel/yedelmodtest/YedelModTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@ public void testUpdateManager() {
1818
try {
1919
JsonArray modrinthApiInfo = UpdateManager.getInstance().getModrinthApiInfo();
2020
String modrinthVersion = UpdateManager.getInstance().getModrinthVersion(modrinthApiInfo);
21-
String modrinthChangelog = UpdateManager.getInstance().getModrinthChangelog(modrinthApiInfo);
2221
System.out.println("Modrinth version: " + modrinthVersion);
23-
System.out.println("Modrinth changelog: " + modrinthChangelog);
2422
}
2523
catch (IOException e) {
2624
Assertions.fail(e);
2725
}
2826
try {
2927
JsonObject githubApiInfo = UpdateManager.getInstance().getGithubApiInfo();
3028
String githubVersion = UpdateManager.getInstance().getGithubVersion(githubApiInfo);
31-
String githubChangelog = UpdateManager.getInstance().getGithubChangelog(githubApiInfo);
3229
System.out.println("GitHub version: " + githubVersion);
33-
System.out.println("GitHub changelog: " + githubChangelog);
3430
}
3531
catch (IOException e) {
3632
Assertions.fail(e);

0 commit comments

Comments
 (0)