fix inverted config option for combat logout announce

This commit is contained in:
2025-05-15 08:35:03 +02:00
parent 624cc335f2
commit 9ba3bd1dc8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>me.youhavetrouble.preventstabby</groupId>
<artifactId>PreventStabby</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
<packaging>jar</packaging>
<name>PreventStabby</name>
@@ -44,7 +44,7 @@ public class PlayerListener implements Listener {
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onPlayerLeave(PlayerQuitEvent event) {
Player player = event.getPlayer();
if (!PreventStabby.getPlugin().getConfigCache().punish_for_combat_logout_announce) {
if (PreventStabby.getPlugin().getConfigCache().punish_for_combat_logout_announce) {
PluginMessages.broadcastMessage(player, PreventStabby.getPlugin().getConfigCache().punish_for_combat_logout_message);
}
if (!PreventStabby.getPlugin().getConfigCache().punish_for_combat_logout_kill) return;