Skip to content

Commit

Permalink
More messages!
Browse files Browse the repository at this point in the history
  • Loading branch information
Coccocoahelper authored Aug 30, 2024
1 parent a7b90d5 commit 116c42f
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/main/java/me/lrxh/practice/queue/QueueThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,20 @@ public void run() {
participantA, participantB, false);


for (String line : Locale.MATCH_START.formatLines(firstPlayer, secondPlayer.getName(), queueProfile.getQueue().getKit().getName(), BukkitReflection.getPing(secondPlayer))) {
firstPlayer.sendMessage(line);
}
for (String line : Locale.MATCH_START.formatLines(secondPlayer, firstPlayer.getName(), queueProfile.getQueue().getKit().getName(), BukkitReflection.getPing(firstPlayer))) {
secondPlayer.sendMessage(line);
if (queueProfile.isRanked()) {
for (String line : Locale.MATCH_START_RANKED.formatLines(firstPlayer, secondPlayer.getName(), queueProfile.getQueue().getKit().getName(), BukkitReflection.getPing(secondPlayer))) {
firstPlayer.sendMessage(line);
}
for (String line : Locale.MATCH_START_RANKED.formatLines(secondPlayer, firstPlayer.getName(), queueProfile.getQueue().getKit().getName(), BukkitReflection.getPing(firstPlayer))) {
secondPlayer.sendMessage(line);
}
} else {
for (String line : Locale.MATCH_START_UNRANKED.formatLines(firstPlayer, secondPlayer.getName(), queueProfile.getQueue().getKit().getName(), BukkitReflection.getPing(secondPlayer))) {
firstPlayer.sendMessage(line);
}
for (String line : Locale.MATCH_START_UNRANKED.formatLines(secondPlayer, firstPlayer.getName(), queueProfile.getQueue().getKit().getName(), BukkitReflection.getPing(firstPlayer))) {
secondPlayer.sendMessage(line);
}
}

new BukkitRunnable() {
Expand Down

0 comments on commit 116c42f

Please sign in to comment.