SteamWar/BauSystem2.0
Archiviert
12
0

Fix AntiBauAddMemberFix

Dieser Commit ist enthalten in:
yoyosource 2024-02-17 08:55:33 +01:00
Ursprung e4dc05ce02
Commit 338980f0d3

Datei anzeigen

@ -24,6 +24,7 @@ import de.steamwar.linkage.Linked;
import de.steamwar.sql.BauweltMember; import de.steamwar.sql.BauweltMember;
import de.steamwar.sql.SteamwarUser; import de.steamwar.sql.SteamwarUser;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerJoinEvent;
@ -31,7 +32,7 @@ import org.bukkit.event.player.PlayerJoinEvent;
public class AntiBauAddMemberFix implements Listener { public class AntiBauAddMemberFix implements Listener {
@EventHandler @EventHandler(priority = EventPriority.LOWEST)
public void onPlayerJoin(PlayerJoinEvent event) { public void onPlayerJoin(PlayerJoinEvent event) {
if (event.getPlayer().getUniqueId().equals(BauServer.getInstance().getOwner())) { if (event.getPlayer().getUniqueId().equals(BauServer.getInstance().getOwner())) {
return; return;