net.labymod.serverapi.bukkit.listener.PlayerJoinListener   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 8
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A onJoin(PlayerJoinEvent) 0 6 1
1
package net.labymod.serverapi.bukkit.listener;
2
3
import net.labymod.serverapi.bukkit.LabyModPlugin;
4
import org.bukkit.entity.Player;
5
import org.bukkit.event.EventHandler;
6
import org.bukkit.event.Listener;
7
import org.bukkit.event.player.PlayerJoinEvent;
8
9
/**
10
 * Class created by qlow | Jan
11
 */
12
public class PlayerJoinListener implements Listener {
13
14
    @EventHandler
15
    public void onJoin( PlayerJoinEvent event ) {
16
        Player player = event.getPlayer();
17
18
        // Sending the permissions
19
        LabyModPlugin.getInstance().sendPermissions( player );
20
    }
21
22
}
23