From f95675284e80916e5bd662c65b1ac6946b81bab0 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 23 Sep 2020 20:10:33 +0200 Subject: [PATCH] Ignore Bau Add requests --- src/de/steamwar/bungeecore/SubserverSystem.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/de/steamwar/bungeecore/SubserverSystem.java b/src/de/steamwar/bungeecore/SubserverSystem.java index f698afb..7ae6727 100644 --- a/src/de/steamwar/bungeecore/SubserverSystem.java +++ b/src/de/steamwar/bungeecore/SubserverSystem.java @@ -21,6 +21,7 @@ package de.steamwar.bungeecore; import de.steamwar.bungeecore.commands.EventCommand; import de.steamwar.bungeecore.sql.EventFight; +import de.steamwar.bungeecore.sql.IgnoreSystem; import de.steamwar.bungeecore.sql.SteamwarUser; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.chat.ClickEvent; @@ -208,6 +209,8 @@ public class SubserverSystem { ProxiedPlayer o = ProxyServer.getInstance().getPlayer(owner); if(o == null) return; + if(IgnoreSystem.isIgnored(SteamwarUser.get(owner), SteamwarUser.get(p))) + return; BungeeCore.send(o, BungeeCore.CHAT_PREFIX + "§e" + p.getName() + " §7möchte auf deine Bauwelt."); BungeeCore.send(o, "§7Klicke §ehier§7, wenn du das erlauben möchtest.",