register()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
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