package com.alttd.cometskyblock.configuration; import lombok.Getter; import org.spongepowered.configurate.objectmapping.ConfigSerializable; @ConfigSerializable @Getter @SuppressWarnings({"CanBeFinal", "FieldMayBeFinal"}) public class MessageConfiguration implements Configuration { private Island island = new Island(); @ConfigSerializable @Getter public static class Island { String notIslandOwner = "You must be the island owner to do this!"; String notOnIsland = "You must be on your island to do this!"; String notFallingOrFlying = "You can not do this while falling!"; SetHome setHome = new SetHome(); @ConfigSerializable @Getter public static class SetHome { } } private Commands commands = new Commands(); @ConfigSerializable @Getter public static class Commands { private String notAPlayer = "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"; String noIsland = "You need an island to run this command."; private Help help = new Help(); @ConfigSerializable @Getter public static class Help { 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."; } Restart restart = new Restart(); @ConfigSerializable @Getter public static class Restart { String notIslandOwner = "You must be the island owner to do this."; } Accept accept = new Accept(); @ConfigSerializable @Getter public static class Accept { } Leave leave = new Leave(); @ConfigSerializable @Getter public static class Leave { String islandHasMembers = "You can not leave your island if it has members!"; } 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 { String inviteSelf = "You can not invite yourself to this island."; String targetOffline = " not found, is the player online?"; String targetHasIsland = " already has an island and can not be invited."; } 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 { } Go go = new Go(); @ConfigSerializable @Getter public static class Go { } } 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"; } } 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?"; private Invite invite = new Invite(); @ConfigSerializable @Getter public static class Invite { String islandInviteSend = "You have requested to join your island."; String islandInviteReceived = " has requested you to join their island.Type /island accept to accept or /island deny to deny."; String accept = " has accepted 's island invite."; String denied = " has denied 's island invite."; String playerOffline = "This request has denied because both players are no longer online."; } private Restart restart = new Restart(); @ConfigSerializable @Getter public static class Restart { String created = "Island restart request created type /island restart confirm or /island restart deny.This action can not be reversed!"; String cancelled = "You have cancelled your island restart request!"; String teleported = "You have been teleported to spawn because this island is restarting!"; } private Leave leave = new Leave(); @ConfigSerializable @Getter public static class Leave { String created = "Type /island accept or /island deny to confirm.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."; } } }