diff options
Diffstat (limited to 'src/main/java/org/mcess/essentials/modules/Teleport.java')
-rw-r--r-- | src/main/java/org/mcess/essentials/modules/Teleport.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/org/mcess/essentials/modules/Teleport.java b/src/main/java/org/mcess/essentials/modules/Teleport.java index 68b6c6a25..99dfd1fa3 100644 --- a/src/main/java/org/mcess/essentials/modules/Teleport.java +++ b/src/main/java/org/mcess/essentials/modules/Teleport.java @@ -1,30 +1,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; +import org.spongepowered.api.command.CommandException; +import org.spongepowered.api.command.CommandResult; +import org.spongepowered.api.command.CommandSource; +import org.spongepowered.api.command.args.CommandContext; +import org.spongepowered.api.command.spec.CommandExecutor; +import org.spongepowered.api.command.spec.CommandSpec; +import org.spongepowered.api.text.Text; @Module(moduleName = "Teleport", onEnable = "onInitialize") public class Teleport { public void onInitialize() { CommandSpec myCommandSpec = CommandSpec.builder() - .description(Texts.of("Teleport to a player")) + .description(Text.of("Teleport to a player")) .permission("essentials.teleport") .executor(new TeleportCommand()) .build(); } - private class TeleportCommand implements CommandExecutor { + private static class TeleportCommand implements CommandExecutor { @Override public CommandResult execute(CommandSource src, CommandContext args) throws CommandException { - return null; + return CommandResult.success(); } } } |