Skip to content

Commit

Permalink
Fixed replay getting sent even when gamemode is build
Browse files Browse the repository at this point in the history
  • Loading branch information
Devlrxxh committed Apr 6, 2024
1 parent 8b059db commit 10a19fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/lrxh/practice/match/Match.java
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public void end() {

for (Player participant : getPlayers()) {
if (participant != null && participant.isOnline()) {
if (Practice.getInstance().isReplay()){
if (Practice.getInstance().isReplay() && !kit.getGameRules().isBuild()){
for (String msg : Locale.MATCH_SHOW_REPLAY.formatLines(participant)) {
if (msg.contains("%CLICKABLE%")) {
ChatComponentBuilder builder = new ChatComponentBuilder(Locale.MATCH_SHOW_REPLAY_RECEIVED_CLICKABLE.format(participant
Expand Down

0 comments on commit 10a19fb

Please sign in to comment.