Add a base for commands

This commit is contained in:
Len
2024-01-25 17:45:18 +01:00
parent 0e97c3dd5b
commit 20a5b09a39
23 changed files with 597 additions and 7 deletions
@@ -7,4 +7,133 @@ import org.spongepowered.configurate.objectmapping.ConfigSerializable;
@Getter
@SuppressWarnings({"CanBeFinal", "FieldMayBeFinal"})
public class MessageConfiguration implements Configuration {
private Commands commands = new Commands();
@ConfigSerializable @Getter
public static class Commands {
private String notAPlayer = "<red>You must be a player to use this command.";
private Island island = new Island();
@ConfigSerializable @Getter
public static class Island {
String commandUsage = "Wrong usage: try /island help";
private Help help = new Help();
@ConfigSerializable @Getter
public static class Help {
String intro = "test";
String island = "";
String setHome = "";
String restart = "";
String invite = "";
String accept = "";
String confirm = "";
String kick = "";
String setOwner = "";
String leave = "";
String level = "";
String members = "";
String options = "";
String top = "";
String visit = "";
String challenges = "";
}
SetHome setHome = new SetHome();
@ConfigSerializable @Getter
public static class SetHome {
}
Restart restart = new Restart();
@ConfigSerializable @Getter
public static class Restart {
}
Accept accept = new Accept();
@ConfigSerializable @Getter
public static class Accept {
}
Leave leave = new Leave();
@ConfigSerializable @Getter
public static class Leave {
}
Members members = new Members();
@ConfigSerializable @Getter
public static class Members {
}
Level level = new Level();
@ConfigSerializable @Getter
public static class Level {
}
Top top = new Top();
@ConfigSerializable @Getter
public static class Top {
}
Options options = new Options();
@ConfigSerializable @Getter
public static class Options {
}
Confirm confirm = new Confirm();
@ConfigSerializable @Getter
public static class Confirm {
}
Invite invite = new Invite();
@ConfigSerializable @Getter
public static class Invite {
}
Kick kick = new Kick();
@ConfigSerializable @Getter
public static class Kick {
}
SetOwner setOwner = new SetOwner();
@ConfigSerializable @Getter
public static class SetOwner {
}
Visit visit = new Visit();
@ConfigSerializable @Getter
public static class Visit {
}
}
private Challenges challenges = new Challenges();
@ConfigSerializable @Getter
public static class Challenges {
String commandUsage = "Wrong usage: try /challenges help";
String notAtIsland = "You must be on your island to perform this command.";
String noIsland = "You need to create an island before performing this command.";
}
private Admin admin = new Admin();
@ConfigSerializable @Getter
public static class Admin {
String commandUsage = "Wrong usage: try /cometskyblock help";
}
}
}
@@ -13,9 +13,9 @@ public class PluginConfiguration implements Configuration {
@Comment("Generate debug messages")
private boolean debug = true;
private MasterWorldGenerator masterWorldGenerator = new MasterWorldGenerator();
private WorldGenerator worldGenerator = new WorldGenerator();
@ConfigSerializable @Getter
public static class MasterWorldGenerator {
public static class WorldGenerator {
private int centerX = 0;
private int centerZ = 0;