F3NFix
Dieser Commit ist enthalten in:
Ursprung
5f8a740fe9
Commit
0b03055098
6
pom.xml
6
pom.xml
@ -67,5 +67,11 @@
|
||||
<version>1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>steamwar</groupId>
|
||||
<artifactId>F3NPerm</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
@ -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);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren