Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
[ci-skip] Disable github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Apr 6, 2023
1 parent eac3be2 commit 1f344a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
File renamed without changes.
Expand Up @@ -87,10 +87,10 @@ public void JoinMessage(PlayerJoinEvent event) {
for (Player online : plugin.getServer().getOnlinePlayers()) {
try {
online.playSound(online.getLocation(), Sound.valueOf(config.getString("Messages.Join_Quit_Messages.Join_Message.Sound")), 10, 1);
} catch (IllegalArgumentException ignored) {
}
} catch (IllegalArgumentException ignored) {}
}
}

if ((config.getBoolean("Messages.Join_Quit_Messages.Actionbar_Message.Enable"))
&& !(config.getBoolean("Messages.Join_Quit_Messages.Group_Messages.Enable"))) {
String message = config.getString("Messages.Join_Quit_Messages.Actionbar_Message.Message");
Expand Down Expand Up @@ -162,8 +162,7 @@ public void JoinMessage(PlayerJoinEvent event) {
for (Player online : plugin.getServer().getOnlinePlayers()) {
try {
online.playSound(online.getLocation(), Sound.valueOf(sound), 10, 1);
} catch (IllegalArgumentException ignored) {
}
} catch (IllegalArgumentException ignored) {}
}
}
}
Expand All @@ -181,14 +180,12 @@ public void onPlayerQuit(PlayerQuitEvent event) {
if ((config.getBoolean("Messages.Join_Quit_Messages.Quit_Message.Enable"))
&& !(config.getBoolean("Messages.Join_Quit_Messages.Group_Messages.Enable"))) {
String message = config.getString("Messages.Join_Quit_Messages.Quit_Message.Message");
System.out.println("Setting quit message 1");
event.setQuitMessage(placeholderManager.setPlaceholders(player, message));

for (Player online : plugin.getServer().getOnlinePlayers()) {
try {
online.playSound(online.getLocation(), Sound.valueOf(config.getString("Messages.Join_Quit_Messages.Quit_Message.Sound")), 10, 1);
} catch (IllegalArgumentException ignored) {
}
} catch (IllegalArgumentException ignored) {}
}
}

Expand All @@ -199,7 +196,6 @@ public void onPlayerQuit(PlayerQuitEvent event) {

if (permission != null && player.hasPermission(permission)) {
if (config.contains("Messages.Join_Quit_Messages.Group_Messages." + key + ".Quit_Message")) {
System.out.println("Setting quit message 2");
event.setQuitMessage(placeholderManager.setPlaceholders(player, quitMessage));
}
}
Expand Down

0 comments on commit 1f344a7

Please sign in to comment.