de.pewpewproject.lasertag.command.Commands   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 2 1
1
package de.pewpewproject.lasertag.command;
2
3
import de.pewpewproject.lasertag.command.lasertag.game.LasertagCommand;
4
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
5
6
/**
7
 * Initializes the server side commands
8
 *
9
 * @author Étienne Muser
10
 */
11
public class Commands {
12
    /**
13
     * Init server side commands
14
     */
15
    public static void register() {
16
        CommandRegistrationCallback.EVENT.register(((dispatcher, registryAccess, environment) -> LasertagCommand.register(dispatcher)));
17
    }
18
}
19