2024-01-05 20:19:19 +00:00
package com.alttd.cometskyblock.configuration ;
import lombok.Getter ;
import org.spongepowered.configurate.objectmapping.ConfigSerializable ;
@ConfigSerializable
@Getter
@SuppressWarnings ( { " CanBeFinal " , " FieldMayBeFinal " } )
public class MessageConfiguration implements Configuration {
2024-01-25 14:49:04 +00:00
2024-02-10 21:56:58 +00:00
private Island island = new Island ( ) ;
@ConfigSerializable @Getter
public static class Island {
String notIslandOwner = " <red>You must be the island owner to do this! " ;
String notOnIsland = " <red>You must be on your island to do this! " ;
String notFallingOrFlying = " <red>You can not do this while falling! " ;
SetHome setHome = new SetHome ( ) ;
@ConfigSerializable @Getter
public static class SetHome {
2024-02-11 13:34:56 +00:00
String homeSet = " You have set your island home to your current location. " ;
}
2024-02-10 21:56:58 +00:00
2024-02-11 13:34:56 +00:00
CobbeGen cobbeGen = new CobbeGen ( ) ;
@ConfigSerializable @Getter
public static class CobbeGen {
2024-02-11 16:05:49 +00:00
String requiredLevel = " You must reach islandlevel <islandlevel> before upgrading to the next cobblestone generation level. " ;
2024-02-11 13:34:56 +00:00
String upgraded = " Your cobblestone generation is now level <level>. " ;
}
2024-02-17 20:55:17 +00:00
WorldBorder worldBorder = new WorldBorder ( ) ;
@ConfigSerializable @Getter
public static class WorldBorder {
String requiredLevel = " You must reach islandlevel <islandlevel> before you can expand the worldborder. " ;
String upgraded = " You have expanded your worldborder by <range> blocks. " ;
}
2024-02-11 13:34:56 +00:00
Level level = new Level ( ) ;
@ConfigSerializable @Getter
public static class Level {
2024-02-11 14:13:19 +00:00
String requiredXp = " You need <requiredxp> exp to level up your island. " ;
2024-02-11 13:34:56 +00:00
String upgraded = " Your island has leveled up! " ;
2024-02-10 21:56:58 +00:00
}
}
2024-01-25 14:49:04 +00:00
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 " ;
2024-02-10 21:34:06 +00:00
String noIsland = " <red>You need an island to run this command. " ;
2024-01-25 14:49:04 +00:00
private Help help = new Help ( ) ;
@ConfigSerializable @Getter
public static class Help {
2024-02-03 23:51:10 +00:00
String intro = " List of all Skyblock Commands: " ;
String go = " Teleports you to your island. Creates a new island if it is not existing. " ;
String setHome = " Sets the islands spawnpoint to the players location. " ;
String restart = " Restarts your island. " ;
String invite = " Invites another player to your island. " ;
String accept = " Accepts the invite from another player. " ;
String kick = " Kicks a player from your island. " ;
String setOwner = " Gives island ownership to another player " ;
String leave = " Leave your current island with this command. " ;
String level = " Calculates and shows the current level of your island. " ;
String members = " Gives a list of all members on the island. " ;
String options = " Opens the options menu for your island. " ;
String top = " Shows the top 5 islands per level. " ;
String visit = " Lets you visit another island without losing your own. " ;
String confirm = " Accepts the request of another player to visit your island. " ;
String challenges = " Opens the challenges menu. " ;
2024-01-25 14:49:04 +00:00
}
Restart restart = new Restart ( ) ;
@ConfigSerializable @Getter
public static class Restart {
2024-02-10 21:12:15 +00:00
String notIslandOwner = " <red>You must be the island owner to do this. " ;
2024-01-25 14:49:04 +00:00
}
Accept accept = new Accept ( ) ;
@ConfigSerializable @Getter
public static class Accept {
}
Leave leave = new Leave ( ) ;
@ConfigSerializable @Getter
public static class Leave {
2024-02-10 21:34:06 +00:00
String islandHasMembers = " You can not leave your island if it has members! " ;
2024-01-25 14:49:04 +00:00
}
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 {
2024-02-10 20:36:22 +00:00
String inviteSelf = " <red>You can not invite yourself to this island. " ;
String targetOffline = " <red><target> not found, is the player online? " ;
String targetHasIsland = " <red><target> already has an island and can not be invited. " ;
2024-01-25 14:49:04 +00:00
}
Kick kick = new Kick ( ) ;
@ConfigSerializable @Getter
public static class Kick {
}
SetOwner setOwner = new SetOwner ( ) ;
@ConfigSerializable @Getter
public static class SetOwner {
2024-02-10 22:25:50 +00:00
String notIslandOwner = " <red>You must be the island owner to do this. " ;
String targetOffline = " <red><target> not found, is the player online? " ;
String playerIsOwner = " <red>You are already the island owner. " ;
String targetNotAMember = " <red><target> must be a member of your island. " ;
2024-01-25 14:49:04 +00:00
}
Visit visit = new Visit ( ) ;
@ConfigSerializable @Getter
public static class Visit {
2024-02-10 22:19:50 +00:00
String visitSelf = " <red>You can not visit your own island. " ;
String targetOffline = " <red><target> not found, is the player online? " ;
String targetHasNoIsland = " <red><target> does not have an island. " ;
2024-01-25 14:49:04 +00:00
}
2024-02-03 23:51:10 +00:00
Go go = new Go ( ) ;
@ConfigSerializable @Getter
public static class Go {
}
2024-01-25 14:49:04 +00:00
}
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 " ;
}
}
2024-02-10 20:36:22 +00:00
private Requests requests = new Requests ( ) ;
@ConfigSerializable @Getter
public static class Requests {
String timedOut = " Your request has timed out! " ;
String noPendingRequests = " You have no pending requests, have they been timed out? " ;
2024-02-10 22:19:50 +00:00
String playerOffline = " This request has denied because both players are no longer online. " ;
2024-02-10 20:36:22 +00:00
private Invite invite = new Invite ( ) ;
@ConfigSerializable @Getter
public static class Invite {
String islandInviteSend = " You have requested <target> to join your island. " ;
String islandInviteReceived = " <requester> has requested you to join their island.<newline>Type <yellow>/island accept</yellow> to accept or <yellow>/island deny</yellow> to deny. " ;
String accept = " <target> has accepted <requester>'s island invite. " ;
String denied = " <target> has denied <requester>'s island invite. " ;
}
2024-02-10 21:12:15 +00:00
private Restart restart = new Restart ( ) ;
@ConfigSerializable @Getter
public static class Restart {
String created = " Island restart request created type <yellow>/island restart confirm</yellow> or <yellow>/island restart deny</yellow>.<newline><red>This action can not be reversed! " ;
String cancelled = " You have cancelled your island restart request! " ;
2024-02-10 21:45:43 +00:00
String teleported = " You have been teleported to spawn because this island is restarting! " ;
2024-02-10 21:12:15 +00:00
}
2024-02-10 21:34:06 +00:00
private Leave leave = new Leave ( ) ;
@ConfigSerializable @Getter
public static class Leave {
String created = " Type <yellow>/island accept</yellow> or <yellow>/island deny</yellow> to confirm.<newline><red>This action can not be reversed if you are the island owner! " ;
String accept = " You have left your island. " ;
String denied = " You have cancelled your request. " ;
}
2024-02-10 22:19:50 +00:00
private Visit visit = new Visit ( ) ;
@ConfigSerializable @Getter
public static class Visit {
String created = " <requester> has requested to teleport to your island. Type <yellow>/island accept</yellow> or <yellow>/island deny</yellow> to confirm. " ;
String send = " You have send a request to visit <target>'s island. " ;
String targetAccept = " you have accepted <requester>'s island visit request. " ;
String requesterAccept = " <target> has accepted your island visit request. " ;
String targetDenied = " you have denied <requester>'s island visit request. " ;
String requesterDenied = " <target> has denied your island visit request. " ;
}
2024-02-10 20:36:22 +00:00
}
2024-01-05 20:19:19 +00:00
}