Skip to content

Commit 91fc352

Browse files
Tigerpanzer02version-bump[github-action]
andauthored
#patch Quality Of Life (QOL) Improvements (#79)
* Bump version from 2.1.3 to 2.1.3-SNAPSHOT0 * Ensure UTF-8 compiling * Bump version from 2.1.3-SNAPSHOT0 to 2.1.3-SNAPSHOT1 * Removed unused permissions in permissions.yml * Updated language.yml so by default base selection got prefix * Fixed arena forcestop the game after a player leave the Fullgame and not enough players to continue are online * Bump version from 2.1.3-SNAPSHOT1 to 2.1.3-SNAPSHOT2 * Updated Minigamesbox to 1.4.1 * Bump version from 2.1.3-SNAPSHOT2 to 2.1.3-SNAPSHOT3 * Simplify ScoreboardManager * Bump version from 2.1.3-SNAPSHOT3 to 2.1.3-SNAPSHOT4 * Adjusted CHANGELOG.md * Bump version from 2.1.3-SNAPSHOT4 to 2.1.3-SNAPSHOT5 --------- Co-authored-by: version-bump[github-action] <41898282+version-bump[github-action]@users.noreply.github.com>
1 parent baf347a commit 91fc352

10 files changed

Lines changed: 59 additions & 92 deletions

File tree

.github/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### 2.1.4 Release (03.05.2025)
2+
* Fixed arena forcestop the game after a player leave the Fullgame and not enough players to continue are online
3+
* Updated language.yml so by default base selection got prefix
4+
* Removed unused permissions in permissions.yml
5+
* Updated to minigamesbox 1.4.1
6+
17
### 2.1.3 Release (13.03.2025)
28
* Updated to minigamesbox 1.4.0
39

.github/building/pom.xml

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>plugily.projects</groupId>
99
<artifactId>thebridge</artifactId>
10-
<version>2.1.1-SNAPSHOT1-java8</version>
10+
<version>2.1.3-SNAPSHOT0</version>
1111
<name>TheBridge</name>
1212

1313
<properties>
@@ -35,14 +35,6 @@
3535
<id>plugilyprojects-snapshots</id>
3636
<url>https://maven.plugily.xyz/snapshots</url>
3737
</repository>
38-
<repository>
39-
<id>jitpack</id>
40-
<url>https://jitpack.io</url>
41-
</repository>
42-
<repository>
43-
<id>codemc-repo</id>
44-
<url>https://repo.codemc.org/repository/maven-public/</url>
45-
</repository>
4638
<repository>
4739
<id>spigot-repo</id>
4840
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
@@ -61,12 +53,12 @@
6153
<groupId>org.jetbrains</groupId>
6254
<artifactId>annotations</artifactId>
6355
<version>23.0.0</version>
64-
<scope>compile</scope>
56+
<scope>provided</scope>
6557
</dependency>
6658
<dependency>
6759
<groupId>plugily.projects</groupId>
6860
<artifactId>MiniGamesBox-Classic</artifactId>
69-
<version>1.3.3-java8</version>
61+
<version>1.4.0</version>
7062
<scope>compile</scope>
7163
<optional>true</optional>
7264
</dependency>
@@ -79,53 +71,59 @@
7971
</resource>
8072
</resources>
8173
<plugins>
82-
<plugin>
83-
<groupId>org.apache.maven.plugins</groupId>
84-
<artifactId>maven-site-plugin</artifactId>
85-
<version>3.12.0</version>
86-
</plugin>
8774
<plugin>
8875
<groupId>org.apache.maven.plugins</groupId>
8976
<artifactId>maven-compiler-plugin</artifactId>
90-
<version>3.10.1</version>
91-
<goals>
92-
<goal>compile</goal>
93-
</goals>
77+
<version>3.14.0</version>
9478
<configuration>
9579
<source>${java.version}</source>
9680
<target>${java.version}</target>
81+
<encoding>UTF-8</encoding>
9782
</configuration>
9883
</plugin>
84+
<plugin>
85+
<groupId>org.apache.maven.plugins</groupId>
86+
<artifactId>maven-site-plugin</artifactId>
87+
<version>3.21.0</version>
88+
</plugin>
89+
<plugin>
90+
<groupId>org.apache.maven.plugins</groupId>
91+
<artifactId>maven-deploy-plugin</artifactId>
92+
<version>3.1.4</version>
93+
</plugin>
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-project-info-reports-plugin</artifactId>
97+
<version>3.9.0</version>
98+
</plugin>
9999
<plugin>
100100
<groupId>org.apache.maven.plugins</groupId>
101101
<artifactId>maven-javadoc-plugin</artifactId>
102-
<version>3.4.0</version>
102+
<version>3.11.2</version>
103103
<configuration>
104-
<windowtitle>Murder Mystery API docs for v${project.version}</windowtitle>
105-
<description>Minecraft survival minigame.
106-
Be the murderer, innocent or the detective! Don't be killed during the game to win! API
107-
documentation for hooking Murder Mystery with your plugin.
104+
<windowtitle>TheBridge API docs for v${project.version}</windowtitle>
105+
<description>Minecraft Base PvP minigame.
106+
Defend your base and try to wipe out the others
108107
</description>
109-
<destDir>minecraft/thebridge</destDir>
110-
<isOffline>false</isOffline>
111108
</configuration>
112109
</plugin>
113110
<plugin>
114111
<groupId>org.apache.maven.plugins</groupId>
115112
<artifactId>maven-jar-plugin</artifactId>
116-
<version>3.2.2</version>
113+
<version>3.4.2</version>
117114
</plugin>
118115
<plugin>
119116
<groupId>org.apache.maven.plugins</groupId>
120117
<artifactId>maven-shade-plugin</artifactId>
121-
<version>3.3.0</version>
118+
<version>3.6.0</version>
122119
<executions>
123120
<execution>
124121
<phase>package</phase>
125122
<goals>
126123
<goal>shade</goal>
127124
</goals>
128125
<configuration>
126+
<minimizeJar>true</minimizeJar>
129127
<relocations>
130128
<relocation>
131129
<pattern>com.zaxxer.hikari</pattern>
@@ -135,10 +133,6 @@
135133
<pattern>plugily.projects.minigamesbox</pattern>
136134
<shadedPattern>plugily.projects.thebridge.minigamesbox</shadedPattern>
137135
</relocation>
138-
<relocation>
139-
<pattern>plugily.projects.commonsbox</pattern>
140-
<shadedPattern>plugily.projects.thebridge.commonsbox</shadedPattern>
141-
</relocation>
142136
</relocations>
143137
<createDependencyReducedPom>false</createDependencyReducedPom>
144138
</configuration>
@@ -161,15 +155,18 @@
161155
<extension>
162156
<groupId>org.apache.maven.wagon</groupId>
163157
<artifactId>wagon-ssh</artifactId>
164-
<version>3.5.2</version>
158+
<version>3.5.3</version>
165159
</extension>
166160
</extensions>
167161
</build>
168162
<distributionManagement>
169163
<repository>
170-
<id>plugily-projects</id>
164+
<id>Release</id>
171165
<url>https://maven.plugily.xyz/releases</url>
172166
</repository>
167+
<snapshotRepository>
168+
<id>Snapshot</id>
169+
<url>https://maven.plugily.xyz/snapshots</url>
170+
</snapshotRepository>
173171
</distributionManagement>
174-
175172
</project>

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>plugily.projects</groupId>
99
<artifactId>thebridge</artifactId>
10-
<version>2.1.3</version>
10+
<version>2.1.3-SNAPSHOT5</version>
1111
<name>TheBridge</name>
1212

1313
<properties>
@@ -58,7 +58,7 @@
5858
<dependency>
5959
<groupId>plugily.projects</groupId>
6060
<artifactId>MiniGamesBox-Classic</artifactId>
61-
<version>1.4.0</version>
61+
<version>1.4.1</version>
6262
<scope>compile</scope>
6363
<optional>true</optional>
6464
</dependency>
@@ -78,6 +78,7 @@
7878
<configuration>
7979
<source>${java.version}</source>
8080
<target>${java.version}</target>
81+
<encoding>UTF-8</encoding>
8182
</configuration>
8283
</plugin>
8384
<plugin>

src/main/java/plugily/projects/thebridge/arena/ArenaManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void leaveAttempt(@NotNull Player player, @NotNull IPluginArena arena) {
7373
pluginArena.removeDeathPlayer(player);
7474
}
7575
if(arena.getArenaState() != IArenaState.WAITING_FOR_PLAYERS
76-
&& arena.getArenaState() != IArenaState.STARTING
76+
&& arena.getArenaState() != IArenaState.STARTING && arena.getArenaState() != IArenaState.FULL_GAME
7777
&& (arena.getPlayersLeft().size() <= 1
7878
|| (arena.getPlayersLeft().size() <= arena.getArenaOption("BASE_PLAYER_SIZE")
7979
&& pluginArena.getBases().stream()

src/main/java/plugily/projects/thebridge/arena/managers/ScoreboardManager.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public ScoreboardManager(PluginArena arena) {
4444
}
4545

4646
@Override
47-
public List<String> formatScoreboardLines(List<String> lines, Player player) {
47+
public List<String> getScoreboardLines(Player player) {
4848
List<String> changedLines = new ArrayList<>();
4949
IUser user = arena.getPlugin().getUserManager().getUser(player);
50-
for(String line : lines) {
50+
for(String line : super.getScoreboardLines(player)) {
5151
if(line.contains("%arena_option_reset_blocks%")
5252
&& arena.getArenaOption("RESET_BLOCKS") == 0) {
5353
continue;
@@ -63,7 +63,7 @@ public List<String> formatScoreboardLines(List<String> lines, Player player) {
6363
}
6464
}
6565
} else {
66-
changedLines.add(new MessageBuilder(line).player(player).arena(arena).build());
66+
changedLines.add(line);
6767
}
6868
}
6969
return changedLines;
@@ -118,10 +118,10 @@ public String formatBase(Base base, IUser user) {
118118
formattedLine.replaceAll("%scoreboard_base_points_formatted%", points.toString());
119119
} else if(formattedLine.contains("%scoreboard_base_points%")) {
120120
String points;
121-
if (pluginArena.getMode() == Arena.Mode.HEARTS) {
121+
if(pluginArena.getMode() == Arena.Mode.HEARTS) {
122122
points = pluginArena.getArenaOption("MODE_VALUE") + " / " + base.getPoints();
123123
} else {
124-
points = base.getPoints() + " / " +pluginArena.getArenaOption("MODE_VALUE");
124+
points = base.getPoints() + " / " + pluginArena.getArenaOption("MODE_VALUE");
125125
}
126126
formattedLine =
127127
formattedLine.replaceAll("%scoreboard_base_points%", points);

src/main/java/plugily/projects/thebridge/commands/arguments/game/SelectBaseArgument.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void execute(CommandSender sender, String[] args) {
4545
Arena arena = (Arena) registry.getPlugin().getArenaRegistry().getArena((Player) sender);
4646
if(arena != null) {
4747
if(arena.getArenaState() == IArenaState.WAITING_FOR_PLAYERS
48-
|| arena.getArenaState() == IArenaState.STARTING)
48+
|| arena.getArenaState() == IArenaState.STARTING || arena.getArenaState() == IArenaState.FULL_GAME)
4949
arena.getPlugin().getBaseMenuHandler().createMenu((Player) sender, arena);
5050
}
5151
}

src/main/resources/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# Available locales:
1313
# default - English language. Uses 'language.yml'.
1414
# See https://github.com/Plugily-Projects/locale_storage/tree/master/plugins/minecraft/thebridge
15+
# Help us translate the project -> https://translate.plugily.xyz
1516
# Use filename of the language e.g. de_DE.yml -> locale: de_DE
1617
locale: default
1718

src/main/resources/language.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ Bases:
351351
Inside: "Your team"
352352
Name: "Base - %base%"
353353
Menu: "Base Menu"
354-
Choose: "You are now on base %base%"
355-
Member: "You are already member of it!"
354+
Choose: "%plugin_prefix% You are now on base %base%"
355+
Member: "%color_chat_issue%%plugin_prefix% You are already member of it!"
356356
Colors:
357357
BLACK: "&0BLACK"
358358
DARK_BLUE: "&1DARK_BLUE"

src/main/resources/locales/language_default.yml

Lines changed: 7 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ Commands:
8686
# Please do not use more chars than the scoreboard can handle!
8787
# Scoreboard supports up to 122 chars for 1.14+ and 48 chars for 1.13- (COLOR CODES INCLUDED.)
8888
# Placeholders:
89-
# https://wiki.plugily.xyz/REPLACEWITHPROJECTNAME/placeholders/language
89+
# https://wiki.plugily.xyz/minigame/placeholders/
9090
Scoreboard:
9191
Title: "&a&l%plugin_name%"
9292
Bases:
93+
# Alternative format with numbers instead of symbols would be %scoreboard_base_color_formatted% (%scoreboard_base_players_size%) &e%scoreboard_base_yourself% %scoreboard_base_points%
9394
Format: "%scoreboard_base_color_formatted% (%scoreboard_base_players_size%) &e%scoreboard_base_yourself% %scoreboard_base_points_formatted%"
9495
Not-Inside: "--"
9596
Inside: "(You)"
@@ -168,7 +169,7 @@ Bossbar:
168169
In-Game:
169170
- "Playing %plugin_name_uppercase% on PLUGILY.XYZ"
170171
- "Check the plugin creator out on PLUGILY.XYZ"
171-
- "Current base points %base_color_formatted%"
172+
- "Current own points %user_statistic_local_scored_points%"
172173
- "Your base %arena_base_color_formatted%"
173174
Ending:
174175
- "Game has ended! You were playing on PLUGILY.XYZ"
@@ -341,48 +342,14 @@ Kit:
341342
Not-Unlocked: "%color_chat_issue%%plugin_prefix% You haven't unlocked %value% yet!"
342343
Choose: "%plugin_prefix% You have chosen: %value%!"
343344
Cooldown: "%color_chat_issue%%plugin_prefix% Kit ability still on cooldown (%number%)!"
345+
No-Armor: "%color_chat_issue%%plugin_prefix% You can't wear armor with your kit!"
344346
Menu:
345347
Title: "Kit Menu"
346348
Lore:
347349
Unlocked: "&aUNLOCKED!"
348350
Locked: "&cLOCKED!"
349351
Unlock-At-Level: "Unlocks at level %number%"
350352
Unlock-In-Store: "&bUnlock this in the store!"
351-
Content:
352-
Bridge:
353-
Name: "&2Bridge"
354-
Description: "&7Basic bridge kit like the one you know!"
355-
Knight:
356-
Name: "&2Knight"
357-
Description: "&7This is the one and only knight kit! Many people think this is the worst kit! I must admit they are totally wrong!"
358-
Light-Tank:
359-
Name: "&2Light Tank"
360-
Description: "&7You are Junior tank!"
361-
Archer:
362-
Name: "&6Archer"
363-
Description: "&7Start with a extra amount of arrows, leather armor and a wooden sword. Archers are loved by the villagers, know that!"
364-
Hardcore:
365-
Name: "&6Hardcore"
366-
Description: "&7You'll see yourself why this is hardcore"
367-
Healer:
368-
Name: "&6Healer"
369-
Description: "&7Being a healer is the same as being loved. You are able to heal your teammates."
370-
Medium-Tank:
371-
Name: "&6Medium Tank"
372-
Description: "&7Start off with 6 more hearts! Don't be afraid! You have plenty hearts left to lose!"
373-
Terminator:
374-
Name: "&6Terminator"
375-
Description: "&7Easily kill other players with your strength powers!"
376-
Heavy-Tank:
377-
Name: "&bHeavy Tank"
378-
Description: "&7Start off with iron armor and a double amount of hearts! Yup, that's right, you'll be the last man standing!"
379-
Wild-Naked:
380-
Name: "&bWild Naked"
381-
Description: "&7You are the ultimate master! You start off with a better iron sword!"
382-
Cannot-Wear-Armor: "&cYou can't wear armor with the Wild Naked kit!"
383-
Premium-Hardcore:
384-
Name: "&bPremium Hardcore Master"
385-
Description: "&7One hit most players with your OP sword! However be careful. this kit is only for the pros! Do not use it if you aren't a pro!"
386353

387354

388355
#
@@ -395,8 +362,8 @@ Bases:
395362
Inside: "Your team"
396363
Name: "Base - %base%"
397364
Menu: "Base Menu"
398-
Choose: "You are now on base %base%"
399-
Member: "You are already member of it!"
365+
Choose: "%plugin_prefix% You are now on base %base%"
366+
Member: "%color_chat_issue%%plugin_prefix% You are already member of it!"
400367
Colors:
401368
BLACK: "&0BLACK"
402369
DARK_BLUE: "&1DARK_BLUE"
@@ -458,4 +425,4 @@ Leaderboard:
458425
# You edited it, huh? Next time hurt yourself!
459426
Do-Not-Edit:
460427
File-Version: 1
461-
Core-Version: 1
428+
Core-Version: 2

src/main/resources/permissions.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ Exp-Boost:
1212

1313
# Basic permissions for game, permissions explained here: https://wiki.plugily.xyz/
1414
Basic:
15-
Full-Games: "thebridge.fullgames"
16-
# <arena> represents arena name (NOT MAP NAME!), for example: 'thebridge.join.ARENAnice'
17-
# use 'thebridge.join.*' to enable access to all arenas
18-
Join: "thebridge.join.<arena>"
19-
Forcestart: "thebridge.admin.forcestart"
2015
Premium-Kits: "thebridge.kits.premium"
2116

2217
# Don't edit it. But who's stopping you? It's your server!

0 commit comments

Comments
 (0)