SteamWar/BauSystem
Archiviert
13
0
Dieser Commit ist enthalten in:
Lixfel 2019-09-18 19:19:54 +02:00
Ursprung 5f8a740fe9
Commit 0b03055098
2 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -67,5 +67,11 @@
<version>1.0</version> <version>1.0</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>steamwar</groupId>
<artifactId>F3NPerm</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>

Datei anzeigen

@ -12,7 +12,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent; 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.event.player.PlayerQuitEvent;
import org.bukkit.permissions.PermissionAttachment; import org.bukkit.permissions.PermissionAttachment;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
@ -106,7 +106,7 @@ public class BauSystem extends JavaPlugin implements Listener {
} }
@EventHandler @EventHandler
public void onJoin(PlayerJoinEvent e) { public void onJoin(PlayerLoginEvent e) {
Player p = e.getPlayer(); Player p = e.getPlayer();
PermissionAttachment attachment = p.addAttachment(this); PermissionAttachment attachment = p.addAttachment(this);
attachment.setPermission("F3NPerm.use", true); attachment.setPermission("F3NPerm.use", true);