From 0b03055098875c13db9a82f8939a86897a137305 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 18 Sep 2019 19:19:54 +0200 Subject: [PATCH] F3NFix --- pom.xml | 6 ++++++ src/de/steamwar/bausystem/BauSystem.java | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 4689bdf..5f43787 100644 --- a/pom.xml +++ b/pom.xml @@ -67,5 +67,11 @@ 1.0 provided + + steamwar + F3NPerm + 1.0 + provided + \ No newline at end of file diff --git a/src/de/steamwar/bausystem/BauSystem.java b/src/de/steamwar/bausystem/BauSystem.java index b171ba1..dbc285d 100644 --- a/src/de/steamwar/bausystem/BauSystem.java +++ b/src/de/steamwar/bausystem/BauSystem.java @@ -12,7 +12,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.PlayerDeathEvent; -import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerLoginEvent; import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.permissions.PermissionAttachment; import org.bukkit.plugin.java.JavaPlugin; @@ -106,7 +106,7 @@ public class BauSystem extends JavaPlugin implements Listener { } @EventHandler - public void onJoin(PlayerJoinEvent e) { + public void onJoin(PlayerLoginEvent e) { Player p = e.getPlayer(); PermissionAttachment attachment = p.addAttachment(this); attachment.setPermission("F3NPerm.use", true);