Skip to content

Commit

Permalink
Merge pull request #148 from steve4744/master
Browse files Browse the repository at this point in the history
 add broadast level 4 to send finish message to world
  • Loading branch information
A5H73Y authored May 28, 2019
2 parents ab0fea8 + eab4263 commit 07265dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/me/A5H73Y/Parkour/Player/PlayerMethods.java
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,11 @@ private static void displayFinishMessage(Player player, ParkourSession session)
.replace("%TIME%", session.displayTime());

switch (Parkour.getPlugin().getConfig().getInt("OnFinish.BroadcastLevel")) {
case 4:
for (Player players : player.getWorld().getPlayers()) {
players.sendMessage(finishBroadcast);
}
return;
case 3:
for (Player players : Bukkit.getServer().getOnlinePlayers()) {
players.sendMessage(finishBroadcast);
Expand Down

0 comments on commit 07265dd

Please sign in to comment.