add command main-menu messages

This commit is contained in:
dfsek
2021-03-10 15:52:20 -07:00
parent bed8c561a4
commit 51fa58b481
5 changed files with 20 additions and 9 deletions

View File

@@ -2,7 +2,9 @@ package com.dfsek.terra.commands;
import com.dfsek.terra.api.command.CommandManager;
import com.dfsek.terra.api.command.exception.MalformedCommandException;
import com.dfsek.terra.commands.biome.BiomeCommand;
import com.dfsek.terra.commands.profiler.ProfileCommand;
import com.dfsek.terra.commands.structure.StructureCommand;
public final class CommandUtil {
public static void registerAll(CommandManager manager) throws MalformedCommandException {

View File

@@ -0,0 +1,12 @@
package com.dfsek.terra.commands;
import com.dfsek.terra.api.command.CommandTemplate;
import com.dfsek.terra.api.platform.CommandSender;
import com.dfsek.terra.config.lang.LangUtil;
public class GeometryCommand implements CommandTemplate {
@Override
public void execute(CommandSender sender) {
LangUtil.send("command.geometry.main-menu", sender);
}
}

View File

@@ -1,4 +1,4 @@
package com.dfsek.terra.commands;
package com.dfsek.terra.commands.biome;
import com.dfsek.terra.api.TerraPlugin;
import com.dfsek.terra.api.command.CommandTemplate;
@@ -11,8 +11,6 @@ import com.dfsek.terra.api.platform.CommandSender;
import com.dfsek.terra.api.platform.entity.Player;
import com.dfsek.terra.api.world.biome.UserDefinedBiome;
import com.dfsek.terra.api.world.biome.provider.BiomeProvider;
import com.dfsek.terra.commands.biome.BiomeInfoCommand;
import com.dfsek.terra.commands.biome.BiomeLocateCommand;
import com.dfsek.terra.config.lang.LangUtil;
@Command(

View File

@@ -7,6 +7,7 @@ import com.dfsek.terra.api.command.annotation.type.DebugCommand;
import com.dfsek.terra.api.command.annotation.type.PlayerCommand;
import com.dfsek.terra.api.command.annotation.type.WorldCommand;
import com.dfsek.terra.api.platform.CommandSender;
import com.dfsek.terra.config.lang.LangUtil;
@Command(
subcommands = {
@@ -23,6 +24,6 @@ import com.dfsek.terra.api.platform.CommandSender;
public class ProfileCommand implements CommandTemplate {
@Override
public void execute(CommandSender sender) {
LangUtil.send("command.profile.main-menu", sender);
}
}

View File

@@ -1,12 +1,10 @@
package com.dfsek.terra.commands;
package com.dfsek.terra.commands.structure;
import com.dfsek.terra.api.command.CommandTemplate;
import com.dfsek.terra.api.command.annotation.Command;
import com.dfsek.terra.api.command.annotation.Subcommand;
import com.dfsek.terra.api.platform.CommandSender;
import com.dfsek.terra.commands.structure.SpawnCommand;
import com.dfsek.terra.commands.structure.StructureExportCommand;
import com.dfsek.terra.commands.structure.StructureLoadCommand;
import com.dfsek.terra.config.lang.LangUtil;
@Command(
subcommands = {
@@ -31,6 +29,6 @@ import com.dfsek.terra.commands.structure.StructureLoadCommand;
public class StructureCommand implements CommandTemplate {
@Override
public void execute(CommandSender sender) {
LangUtil.send("command.structure.main-menu", sender);
}
}