summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/mcess/essentials/modules/Teleport.java
blob: 68b6c6a2555d3fc527302288517eb2ae52025823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package org.mcess.essentials.modules;

import com.me4502.modularframework.module.Module;
import org.spongepowered.api.text.Texts;
import org.spongepowered.api.util.command.CommandException;
import org.spongepowered.api.util.command.CommandResult;
import org.spongepowered.api.util.command.CommandSource;
import org.spongepowered.api.util.command.args.CommandContext;
import org.spongepowered.api.util.command.spec.CommandExecutor;
import org.spongepowered.api.util.command.spec.CommandSpec;

@Module(moduleName = "Teleport", onEnable = "onInitialize")
public class Teleport {

    public void onInitialize() {
        CommandSpec myCommandSpec = CommandSpec.builder()
                .description(Texts.of("Teleport to a player"))
                .permission("essentials.teleport")
                .executor(new TeleportCommand())
                .build();
    }

    private class TeleportCommand implements CommandExecutor {

        @Override
        public CommandResult execute(CommandSource src, CommandContext args) throws CommandException {
            return null;
        }
    }
}