From ca8ed3aa2b2e8876a38d0736d1f2de9bae61609c Mon Sep 17 00:00:00 2001 From: KiriCattus Date: Sun, 26 May 2024 01:57:15 +0100 Subject: [PATCH] Remove the old config and update the license headers --- .../mmdbot/commander/TheCommander.java | 2 +- .../annotation/RegisterSlashCommand.java | 2 +- .../commander/cfwebhooks/CFProject.java | 2 +- .../commander/cfwebhooks/CFProjects.java | 7 +- .../mmdbot/commander/cfwebhooks/CFUtils.java | 2 +- .../cfwebhooks/CurseForgeManager.java | 2 +- .../cfwebhooks/CurseForgeWebhooksCommand.java | 2 +- .../mmdbot/commander/commands/Commands.java | 2 +- .../commands/CustomPingsCommand.java | 2 +- .../commander/commands/EvaluateCommand.java | 2 +- .../commander/commands/GistCommand.java | 2 +- .../commander/commands/QuoteCommand.java | 2 +- .../commander/commands/RemindCommand.java | 2 +- .../commander/commands/RoleSelectCommand.java | 2 +- .../commander/commands/RolesCommand.java | 2 +- .../commander/commands/ServerCommands.java | 2 +- .../commander/commands/VersionCommand.java | 2 +- .../commander/commands/XkcdCommand.java | 6 +- .../comchannels/CommunityChannelCommand.java | 2 +- .../comchannels/OldChannelsCommand.java | 2 +- .../commands/curseforge/CFProjectCommand.java | 2 +- .../curseforge/CurseForgeCommand.java | 2 +- .../commands/games/TicTacToeCommand.java | 2 +- .../menu/message/AddQuoteContextMenu.java | 2 +- .../menu/message/GistContextMenu.java | 2 +- .../menu/user/UserInfoContextMenu.java | 2 +- .../commander/commands/misc/AboutCommand.java | 2 +- .../commands/misc/DictionaryCommand.java | 2 +- .../commander/commands/misc/HelpCommand.java | 2 +- .../commands/misc/SearchCommand.java | 2 +- .../commands/tricks/AddTrickCommand.java | 2 +- .../commands/tricks/EditTrickCommand.java | 2 +- .../commands/tricks/ListTricksCommand.java | 2 +- .../commands/tricks/RawTrickCommand.java | 2 +- .../commands/tricks/RemoveTrickCommand.java | 2 +- .../commands/tricks/RunTrickCommand.java | 2 +- .../commands/tricks/TrickCommand.java | 2 +- .../commander/config/Configuration.java | 2 +- .../commander/config/GuildConfiguration.java | 2 +- .../commander/config/PermissionList.java | 2 +- .../commander/custompings/CustomPing.java | 2 +- .../commander/custompings/CustomPings.java | 2 +- .../custompings/CustomPingsListener.java | 2 +- .../docs/ConfigBasedElementLoader.java | 19 +- .../commander/docs/CustomDocFormatter.java | 2 +- .../mmdbot/commander/docs/DocsButtonData.java | 2 +- .../mmdbot/commander/docs/DocsButtonType.java | 2 +- .../mmdbot/commander/docs/DocsCommand.java | 2 +- .../mmdbot/commander/docs/DocsConfig.java | 2 +- .../mmdbot/commander/docs/DocsEmbed.java | 2 +- .../mmdbot/commander/docs/DocsSender.java | 2 +- .../docs/MultipleResultsButtonData.java | 2 +- .../commander/docs/NormalDocsSender.java | 2 +- .../eventlistener/FilePreviewListener.java | 2 +- .../eventlistener/ReferencingListener.java | 2 +- .../eventlistener/ThreadListener.java | 2 +- .../commander/migrate/QuotesMigrator.java | 13 +- .../commander/migrate/TricksMigrator.java | 11 +- .../mmdbot/commander/quotes/IQuote.java | 2 +- .../mmdbot/commander/quotes/NullQuote.java | 2 +- .../mmdbot/commander/quotes/Quote.java | 2 +- .../mmdbot/commander/quotes/Quotes.java | 2 +- .../mmdbot/commander/quotes/StringQuote.java | 2 +- .../commander/quotes/UserReference.java | 2 +- .../mmdbot/commander/reminders/Reminder.java | 2 +- .../mmdbot/commander/reminders/Reminders.java | 2 +- .../commander/reminders/SnoozingListener.java | 2 +- .../mmdbot/commander/tricks/EmbedTrick.java | 2 +- .../mmdbot/commander/tricks/ScriptTrick.java | 2 +- .../mmdbot/commander/tricks/StringTrick.java | 2 +- .../mmdbot/commander/tricks/Trick.java | 2 +- .../mmdbot/commander/tricks/TrickContext.java | 2 +- .../mmdbot/commander/tricks/Tricks.java | 2 +- .../updatenotifiers/SharedVersionHelpers.java | 2 +- .../updatenotifiers/UpdateNotifier.java | 2 +- .../updatenotifiers/UpdateNotifiers.java | 2 +- .../blockbench/BlockbenchUpdateNotifier.java | 2 +- .../blockbench/BlockbenchVersionHelper.java | 2 +- .../blockbench/GithubRelease.java | 2 +- .../fabric/FabricApiUpdateNotifier.java | 2 +- .../fabric/FabricVersionHelper.java | 2 +- .../forge/ForgeUpdateNotifier.java | 2 +- .../updatenotifiers/forge/ForgeVersion.java | 2 +- .../forge/ForgeVersionHelper.java | 2 +- .../forge/MinecraftForgeVersion.java | 2 +- .../minecraft/MinecraftUpdateNotifier.java | 2 +- .../minecraft/MinecraftVersionHelper.java | 2 +- .../neoforge/NeoForgeUpdateNotifier.java | 2 +- .../neoforge/NeoForgeVersionHelper.java | 2 +- .../neoforge/NeoForgeVersions.java | 2 +- .../parchment/ParchmentUpdateNotifier.java | 2 +- .../parchment/ParchmentVersionHelper.java | 2 +- .../quilt/QuiltUpdateNotifier.java | 2 +- .../quilt/QuiltVersionHelper.java | 2 +- .../mmdbot/commander/util/EventListeners.java | 2 +- .../commander/util/StringSerializer.java | 2 +- .../commander/util/TheCommanderUtilities.java | 2 +- .../commander/util/dao/ComChannelsDAO.java | 2 +- .../util/dao/ReactionRolePanels.java | 2 +- .../util/dao/UpdateNotifiersDAO.java | 2 +- .../mmdbot/commander/util/mc/MCVersions.java | 2 +- .../commander/util/mc/MinecraftVersion.java | 2 +- .../commander/util/mc/VersionManifest.java | 2 +- .../oldchannels/ChannelMessageChecker.java | 2 +- .../util/oldchannels/ComChannelsArchiver.java | 2 +- .../util/oldchannels/OldChannelsHelper.java | 2 +- .../util/script/ScriptingContext.java | 2 +- .../commander/util/script/ScriptingUtils.java | 2 +- .../util/script/object/ScriptEmbed.java | 2 +- .../util/script/object/ScriptRegion.java | 2 +- .../util/script/object/ScriptRoleIcon.java | 2 +- .../mmdbot/core/OnlyOneBotRunner.java | 2 +- .../com/mcmoddev/mmdbot/core/RunBots.java | 2 +- .../mmdbot/core/ULStatusListener.java | 2 +- .../core/annotation/ExposeScripting.java | 2 +- .../annotation/RegisterEventListener.java | 2 +- .../com/mcmoddev/mmdbot/core/bot/Bot.java | 2 +- .../mcmoddev/mmdbot/core/bot/BotRegistry.java | 2 +- .../com/mcmoddev/mmdbot/core/bot/BotType.java | 2 +- .../mmdbot/core/bot/RegisterBotType.java | 2 +- .../mmdbot/core/commands/CommandUpserter.java | 2 +- .../core/commands/component/Component.java | 2 +- .../commands/component/ComponentListener.java | 2 +- .../component/ComponentListeners.java | 2 +- .../commands/component/ComponentManager.java | 2 +- .../DeferredComponentListenerRegistry.java | 2 +- .../BaseItemComponentInteractionContext.java | 2 +- .../context/ButtonInteractionContext.java | 2 +- .../context/ModalInteractionContext.java | 2 +- .../context/SelectMenuInteractionContext.java | 2 +- .../component/storage/ComponentStorage.java | 2 +- .../storage/SQLComponentStorage.java | 2 +- .../core/commands/context/CommandContext.java | 2 +- .../context/PrefixCommandContext.java | 2 +- .../core/commands/context/SentMessage.java | 2 +- .../commands/context/SlashCommandContext.java | 2 +- .../commands/paginate/PaginatedCommand.java | 2 +- .../core/commands/paginate/Paginator.java | 2 +- .../commands/paginate/PaginatorBuilder.java | 2 +- .../core/commands/paginate/PaginatorImpl.java | 2 +- .../mmdbot/core/common/ScamDetector.java | 2 +- .../mmdbot/core/database/DataMigrator.java | 2 +- .../mmdbot/core/database/MigratorCluster.java | 2 +- .../core/database/SnowflakeStorage.java | 2 +- .../core/database/VersionedDataMigrator.java | 2 +- .../core/database/VersionedDatabase.java | 2 +- .../core/database/jdbi/JdbiFactories.java | 2 +- .../mcmoddev/mmdbot/core/event/Events.java | 2 +- .../event/customlog/CustomAuditLogEvent.java | 2 +- .../core/event/customlog/TrickEvent.java | 2 +- .../event/moderation/ModerationEvent.java | 2 +- .../core/event/moderation/ScamLinkEvent.java | 2 +- .../core/event/moderation/WarningEvent.java | 2 +- .../mcmoddev/mmdbot/core/util/Constants.java | 2 +- .../mmdbot/core/util/DotenvLoader.java | 2 +- .../mmdbot/core/util/MessageUtilities.java | 2 +- .../mmdbot/core/util/ReflectionsUtils.java | 2 +- .../com/mcmoddev/mmdbot/core/util/SemVer.java | 2 +- .../mmdbot/core/util/StringReader.java | 2 +- .../mmdbot/core/util/StringUtilities.java | 2 +- .../mmdbot/core/util/TaskScheduler.java | 2 +- .../com/mcmoddev/mmdbot/core/util/Utils.java | 17 +- .../mmdbot/core/util/WarningDocument.java | 2 +- .../util/builder/SlashCommandBuilder.java | 2 +- .../core/util/config/ConfigurateUtils.java | 2 +- .../core/util/config/SnowflakeValue.java | 2 +- .../util/dictionary/DictionaryDefinition.java | 2 +- .../core/util/dictionary/DictionaryEntry.java | 2 +- .../core/util/dictionary/DictionaryUtils.java | 2 +- .../core/util/event/DismissListener.java | 2 +- .../core/util/event/OneTimeEventListener.java | 2 +- .../util/event/ThreadedEventListener.java | 2 +- .../mmdbot/core/util/gist/ExistingGist.java | 2 +- .../mcmoddev/mmdbot/core/util/gist/Gist.java | 2 +- .../mmdbot/core/util/gist/GistUtils.java | 2 +- .../core/util/gson/InstantTypeAdapter.java | 2 +- .../core/util/gson/PatternTypeAdapter.java | 2 +- .../mmdbot/core/util/jda/EmbedParser.java | 2 +- .../core/util/jda/EnabledRolesCommand.java | 2 +- .../util/jda/caching/InteractionData.java | 2 +- .../util/jda/caching/JdaMessageCache.java | 2 +- .../util/jda/caching/JdaMessageCacheImpl.java | 2 +- .../util/jda/caching/MessageCacheBuilder.java | 2 +- .../core/util/jda/caching/MessageData.java | 2 +- .../core/util/webhook/WebhookManager.java | 2 +- .../core/util/webhook/WebhookManagerImpl.java | 2 +- .../mmdbot/thelistener/TheListener.java | 2 +- .../thelistener/events/LeaveJoinEvents.java | 2 +- .../thelistener/events/MessageEvents.java | 2 +- .../thelistener/events/ModerationEvents.java | 2 +- .../mmdbot/thelistener/events/RoleEvents.java | 2 +- .../thelistener/events/TrickEvents.java | 2 +- .../mmdbot/thelistener/util/GuildConfig.java | 2 +- .../mmdbot/thelistener/util/LoggingType.java | 2 +- .../mmdbot/thelistener/util/Utils.java | 35 --- src/main/resources/logback.xml | 4 +- .../mcmoddev/mmdbot/painter/ThePainter.java | 2 +- .../painter/command/RescaleCommand.java | 2 +- .../mmdbot/painter/command/TintCommand.java | 2 +- .../servericon/GenerateIconCommand.java | 2 +- .../painter/servericon/IconConfiguration.java | 2 +- .../painter/servericon/ServerIconCommand.java | 2 +- .../painter/servericon/ServerIconMaker.java | 2 +- .../servericon/auto/AutomaticIconChanger.java | 2 +- .../auto/AutomaticIconConfiguration.java | 2 +- .../painter/servericon/auto/DayCounter.java | 2 +- .../auto/command/AutoIconEnableCommands.java | 2 +- .../auto/command/AutoIconGetCommand.java | 2 +- .../auto/command/AutoIconSetCommand.java | 2 +- .../auto/command/AutoIconSetDayCommand.java | 2 +- .../auto/command/AutoIconSimulateCommand.java | 2 +- .../mmdbot/painter/util/CooldownManager.java | 2 +- .../painter/util/GifSequenceWriter.java | 2 +- .../mmdbot/painter/util/ImageUtils.java | 2 +- .../mmdbot/painter/util/dao/AutoIconDAO.java | 2 +- .../painter/util/dao/DayCounterDAO.java | 2 +- .../util/migration/AutoIconsMigration.java | 2 +- .../util/migration/DayCounterMigration.java | 2 +- .../mcmoddev/mmdbot/tests/ComponentsTest.java | 2 +- .../mmdbot/tests/DataMigratorTest.java | 2 +- .../mmdbot/tests/EmoteRolePanels.java | 2 +- .../mmdbot/tests/jda/CastingChannelUnion.java | 2 +- .../mcmoddev/mmdbot/tests/jda/JDATesting.java | 2 +- .../mmdbot/tests/jda/PunishmentTests.java | 2 +- .../mcmoddev/mmdbot/watcher/TheWatcher.java | 11 +- .../commands/information/InviteCommand.java | 2 +- .../management/RefreshScamLinksCommand.java | 2 +- .../commands/moderation/BanCommand.java | 2 +- .../commands/moderation/KickCommand.java | 2 +- .../commands/moderation/MuteCommand.java | 2 +- .../commands/moderation/ReactCommand.java | 2 +- .../commands/moderation/UnbanCommand.java | 2 +- .../commands/moderation/UnmuteCommand.java | 2 +- .../commands/moderation/WarningCommand.java | 2 +- .../watcher/event/EventReactionAdded.java | 24 +- .../mmdbot/watcher/event/ForumListener.java | 2 +- .../watcher/event/PersistedRolesEvents.java | 2 +- .../watcher/punishments/NewAccount.java | 2 +- .../watcher/punishments/PhishingLink.java | 2 +- .../watcher/punishments/PunishableAction.java | 2 +- .../punishments/PunishableActions.java | 2 +- .../watcher/punishments/Punishment.java | 2 +- .../mmdbot/watcher/punishments/SpamPing.java | 2 +- .../watcher/rules/RuleAgreementChecker.java | 2 +- .../mmdbot/watcher/rules/RuleCommand.java | 2 +- .../mmdbot/watcher/rules/RuleData.java | 2 +- .../mmdbot/watcher/rules/RuleParser.java | 2 +- .../watcher/rules/UpdateRulesCommand.java | 2 +- .../mmdbot/watcher/util/BotConfig.java | 229 ------------------ .../mmdbot/watcher/util/Configuration.java | 65 ++++- .../mmdbot/watcher/util/References.java | 45 ---- .../mmdbot/watcher/util/database/Invites.java | 2 +- .../watcher/util/database/PersistedRoles.java | 2 +- .../watcher/util/database/RulesDAO.java | 2 +- .../watcher/util/database/Warnings.java | 2 +- 255 files changed, 352 insertions(+), 618 deletions(-) delete mode 100644 src/listener/java/com/mcmoddev/mmdbot/thelistener/util/Utils.java delete mode 100644 src/watcher/java/com/mcmoddev/mmdbot/watcher/util/BotConfig.java delete mode 100644 src/watcher/java/com/mcmoddev/mmdbot/watcher/util/References.java diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/TheCommander.java b/src/commander/java/com/mcmoddev/mmdbot/commander/TheCommander.java index aec62864..c4dcc865 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/TheCommander.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/TheCommander.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/annotation/RegisterSlashCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/annotation/RegisterSlashCommand.java index 5f9919e2..b80f9a9a 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/annotation/RegisterSlashCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/annotation/RegisterSlashCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFProject.java b/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFProject.java index 668b0440..707b8120 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFProject.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFProject.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFProjects.java b/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFProjects.java index 4b6af7fc..08494c9a 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFProjects.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFProjects.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -24,6 +24,7 @@ import com.google.gson.JsonArray; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonWriter; +import com.mcmoddev.mmdbot.commander.TheCommander; import com.mcmoddev.mmdbot.core.util.Constants; import lombok.extern.slf4j.Slf4j; @@ -97,7 +98,7 @@ public void load() { projects = Constants.Gsons.NO_PRETTY_PRINTING.fromJson(reader, typeOfList); } } catch (IOException e) { - log.error("Exception while reading CurseForgeProjects file", e); + TheCommander.LOGGER.error("Exception while reading CurseForgeProjects file", e); } } @@ -109,7 +110,7 @@ public void save() { Constants.Gsons.NO_PRETTY_PRINTING.toJson(projects$, writer); } } catch (IOException e) { - log.error("Exception while saving CurseForgeProjects file", e); + TheCommander.LOGGER.error("Exception while saving CurseForgeProjects file", e); } } diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFUtils.java b/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFUtils.java index 71825b87..5240ee8c 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFUtils.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CFUtils.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CurseForgeManager.java b/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CurseForgeManager.java index a0fe4616..fb27183b 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CurseForgeManager.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CurseForgeManager.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CurseForgeWebhooksCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CurseForgeWebhooksCommand.java index a0d5c737..5f80d4a2 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CurseForgeWebhooksCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/cfwebhooks/CurseForgeWebhooksCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/Commands.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/Commands.java index e55d1d0a..e7c55f51 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/Commands.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/Commands.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/CustomPingsCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/CustomPingsCommand.java index e5895467..65e24850 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/CustomPingsCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/CustomPingsCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/EvaluateCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/EvaluateCommand.java index 0e91f16b..db4f8ea8 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/EvaluateCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/EvaluateCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/GistCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/GistCommand.java index c250d67f..82aa8773 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/GistCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/GistCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/QuoteCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/QuoteCommand.java index b20e55ef..f2ada9d2 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/QuoteCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/QuoteCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RemindCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RemindCommand.java index 15cbbc57..10b2ee65 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RemindCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RemindCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RoleSelectCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RoleSelectCommand.java index a3c23e8f..c20e4845 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RoleSelectCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RoleSelectCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RolesCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RolesCommand.java index 3ccab1bd..b1d8f9e4 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RolesCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/RolesCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/ServerCommands.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/ServerCommands.java index 24dcc8d3..97d99e8a 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/ServerCommands.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/ServerCommands.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/VersionCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/VersionCommand.java index 989fd087..bae5e029 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/VersionCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/VersionCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/XkcdCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/XkcdCommand.java index 3a32dc3f..d6fef118 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/XkcdCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/XkcdCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -80,7 +80,7 @@ protected EmbedBuilder getEmbed(final int startingIndex, final int maximum, fina .setImage(xkcd.img()) .addField("Date", xkcd.day() + "/" + xkcd.month() + "/" + xkcd.year(), true); } catch (IOException e) { - log.warn("Exception trying to resolve comic ", e); + TheCommander.LOGGER.warn("Exception trying to resolve comic ", e); return new EmbedBuilder() .setDescription("There was an exception trying to retrieve that comic: " + e.getLocalizedMessage()); } @@ -101,7 +101,7 @@ protected void execute(final SlashCommandEvent event) { hook.editOriginal("There was an exception executing that command: " + e.getLocalizedMessage()) .setActionRow(DismissListener.createDismissButton()) .queue(); - log.error("Exception executing command ", e); + TheCommander.LOGGER.error("Exception executing command ", e); } }); } diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/comchannels/CommunityChannelCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/comchannels/CommunityChannelCommand.java index dfa111b0..2e982168 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/comchannels/CommunityChannelCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/comchannels/CommunityChannelCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/comchannels/OldChannelsCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/comchannels/OldChannelsCommand.java index aebde2d0..8d4ee0cb 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/comchannels/OldChannelsCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/comchannels/OldChannelsCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/curseforge/CFProjectCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/curseforge/CFProjectCommand.java index 38cc08d9..1dfebd88 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/curseforge/CFProjectCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/curseforge/CFProjectCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/curseforge/CurseForgeCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/curseforge/CurseForgeCommand.java index f607a822..ef139a31 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/curseforge/CurseForgeCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/curseforge/CurseForgeCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/games/TicTacToeCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/games/TicTacToeCommand.java index 23e2a28e..3b434893 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/games/TicTacToeCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/games/TicTacToeCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/message/AddQuoteContextMenu.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/message/AddQuoteContextMenu.java index 997904b6..3f5fefc1 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/message/AddQuoteContextMenu.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/message/AddQuoteContextMenu.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/message/GistContextMenu.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/message/GistContextMenu.java index ad26a586..e7f649b1 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/message/GistContextMenu.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/message/GistContextMenu.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/user/UserInfoContextMenu.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/user/UserInfoContextMenu.java index ca94f6fa..efd1edec 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/user/UserInfoContextMenu.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/menu/user/UserInfoContextMenu.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/AboutCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/AboutCommand.java index fb07667a..39686dd7 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/AboutCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/AboutCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/DictionaryCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/DictionaryCommand.java index 75dfe5b9..980df1c4 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/DictionaryCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/DictionaryCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/HelpCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/HelpCommand.java index b46f76e6..a5190a60 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/HelpCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/HelpCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/SearchCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/SearchCommand.java index ed1a123c..0e4ab6f8 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/SearchCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/misc/SearchCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/AddTrickCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/AddTrickCommand.java index f85e650d..2f8aeb22 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/AddTrickCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/AddTrickCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/EditTrickCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/EditTrickCommand.java index 5c9c750f..84791096 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/EditTrickCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/EditTrickCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/ListTricksCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/ListTricksCommand.java index a07030f8..9f3de381 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/ListTricksCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/ListTricksCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RawTrickCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RawTrickCommand.java index bf09fc7d..d8c39b36 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RawTrickCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RawTrickCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RemoveTrickCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RemoveTrickCommand.java index f190342e..380f950e 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RemoveTrickCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RemoveTrickCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RunTrickCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RunTrickCommand.java index 0ad742fd..956aa475 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RunTrickCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/RunTrickCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/TrickCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/TrickCommand.java index 45df7013..59288d65 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/TrickCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/commands/tricks/TrickCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/config/Configuration.java b/src/commander/java/com/mcmoddev/mmdbot/commander/config/Configuration.java index 4799b33d..43b08aa1 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/config/Configuration.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/config/Configuration.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/config/GuildConfiguration.java b/src/commander/java/com/mcmoddev/mmdbot/commander/config/GuildConfiguration.java index 2f751e1c..fa654abc 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/config/GuildConfiguration.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/config/GuildConfiguration.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/config/PermissionList.java b/src/commander/java/com/mcmoddev/mmdbot/commander/config/PermissionList.java index 74fd7d42..60a26c6a 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/config/PermissionList.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/config/PermissionList.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPing.java b/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPing.java index d1b6d292..a6b307d1 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPing.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPing.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPings.java b/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPings.java index 1749a2f3..3c393513 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPings.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPings.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPingsListener.java b/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPingsListener.java index 852b7a3d..db60f7ae 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPingsListener.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/custompings/CustomPingsListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/ConfigBasedElementLoader.java b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/ConfigBasedElementLoader.java index 23891cf3..77744dd2 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/ConfigBasedElementLoader.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/ConfigBasedElementLoader.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -20,6 +20,7 @@ */ package com.mcmoddev.mmdbot.commander.docs; +import com.mcmoddev.mmdbot.commander.TheCommander; import com.mcmoddev.mmdbot.core.util.Constants; import com.mcmoddev.mmdbot.core.util.config.ConfigurateUtils; import de.ialistannen.javadocapi.indexing.OnlineJavadocIndexer; @@ -116,7 +117,7 @@ public ConfigBasedElementLoader(final Path basePath) throws Exception { tryIndex(database.getIndexUrl(), storage); indexedAmount++; } catch (Exception e) { - log.error("There was an exception trying to index JavaDocs: ", e); + TheCommander.LOGGER.error("There was an exception trying to index JavaDocs: ", e); indexedAmount++; } }); @@ -173,7 +174,7 @@ private void tryIndex(final String indexUrl, final SqliteStorage storage) throws Files.createFile(storage.getFile()); final var launcher = new JavadocLauncher(); if (indexUrl.startsWith("https://") || indexUrl.startsWith("http://")) { - log.info("Downloading {} for indexing...", indexUrl); + TheCommander.LOGGER.info("Downloading {} for indexing...", indexUrl); try (final var readChannel = Channels.newChannel(new URL(indexUrl).openStream())) { final var downloadFile = storage.getFile().getParent().resolve("index_" + storage.getFile().toFile().getName() + (indexUrl.endsWith(".jar") ? ".jar" : ".zip")); Files.createFile(downloadFile); @@ -195,7 +196,7 @@ private void tryIndex(final String indexUrl, final SqliteStorage storage) throws } static void index(final Launcher launcher, final SqliteStorage storage) { - log.warn("Started indexing JavaDocs for {}...", storage.getFile()); + TheCommander.LOGGER.warn("Started indexing JavaDocs for {}...", storage.getFile()); launcher.getEnvironment().setShouldCompile(false); launcher.getEnvironment().disableConsistencyChecks(); launcher.getEnvironment().setOutputType(OutputType.NO_OUTPUT); @@ -216,7 +217,7 @@ static void index(final Launcher launcher, final SqliteStorage storage) { ); processor.shutdown(); storage.addAll(extractor.getFoundElements()); - log.warn("Finished indexing JavaDocs."); + TheCommander.LOGGER.warn("Finished indexing JavaDocs."); } private static Path resolve(final Path basePath, final String other) { @@ -255,22 +256,22 @@ public LoggingProcessLogger(Launcher launcher) { @Override public void start(Process process) { - log.warn("Stating phase {}", process); + TheCommander.LOGGER.warn("Stating phase {}", process); touchedClasses = 0; } @Override public void step(Process process, String task, int taskId, int nbTask) { - log.info("Working on {} as part of {}", task, process); + TheCommander.LOGGER.info("Working on {} as part of {}", task, process); touchedClasses++; if (touchedClasses % 1000 == 0) { - log.warn("Phase {} has discovered {} classes so far. Currently working on {}", process, touchedClasses, task); + TheCommander.LOGGER.warn("Phase {} has discovered {} classes so far. Currently working on {}", process, touchedClasses, task); } } @Override public void end(Process process) { - log.warn("Phase {} done! Discovered classes: {}", process, touchedClasses); + TheCommander.LOGGER.warn("Phase {} done! Discovered classes: {}", process, touchedClasses); } } } diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/CustomDocFormatter.java b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/CustomDocFormatter.java index a8329137..49790e91 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/CustomDocFormatter.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/CustomDocFormatter.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsButtonData.java b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsButtonData.java index 26a3362c..522dc9cf 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsButtonData.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsButtonData.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsButtonType.java b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsButtonType.java index 66f9013a..68aa0582 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsButtonType.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsButtonType.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsCommand.java b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsCommand.java index 58ba9669..90e57e9c 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsCommand.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsConfig.java b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsConfig.java index 32f844c1..f728c3f1 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsConfig.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsConfig.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsEmbed.java b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsEmbed.java index 611b6bbb..1073c3c9 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsEmbed.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsEmbed.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsSender.java b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsSender.java index e3442bd1..48d8fcf1 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsSender.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/DocsSender.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/MultipleResultsButtonData.java b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/MultipleResultsButtonData.java index 93947737..4a2f781b 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/MultipleResultsButtonData.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/MultipleResultsButtonData.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/NormalDocsSender.java b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/NormalDocsSender.java index 9de9d828..75f988b0 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/docs/NormalDocsSender.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/docs/NormalDocsSender.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/FilePreviewListener.java b/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/FilePreviewListener.java index c2e21afd..43fdaaf3 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/FilePreviewListener.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/FilePreviewListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/ReferencingListener.java b/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/ReferencingListener.java index ee89713f..24bc0e56 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/ReferencingListener.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/ReferencingListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/ThreadListener.java b/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/ThreadListener.java index 9031ded2..634f6fa1 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/ThreadListener.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/eventlistener/ThreadListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/migrate/QuotesMigrator.java b/src/commander/java/com/mcmoddev/mmdbot/commander/migrate/QuotesMigrator.java index 023a759e..7af5ebf5 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/migrate/QuotesMigrator.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/migrate/QuotesMigrator.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -22,6 +22,7 @@ import com.google.common.reflect.TypeToken; import com.google.gson.JsonObject; +import com.mcmoddev.mmdbot.commander.TheCommander; import com.mcmoddev.mmdbot.commander.quotes.NullQuote; import com.mcmoddev.mmdbot.commander.quotes.Quotes; import com.mcmoddev.mmdbot.commander.quotes.StringQuote; @@ -64,7 +65,7 @@ public void migrate() { // Check the ../mmdbot/quotes.json file for after the split final var oldPath = QUOTES_FILE_PATH.apply(parent.resolve("mmdbot")); if (Files.exists(oldPath)) { - log.warn("Found old tricks file in {}. Copying...", oldPath); + TheCommander.LOGGER.warn("Found old tricks file in {}. Copying...", oldPath); Files.copy(oldPath, filePath); renameMigratedFile(oldPath); migrateUnversioned(filePath); @@ -73,7 +74,7 @@ public void migrate() { } Quotes.MIGRATOR.migrate(Quotes.CURRENT_SCHEMA_VERSION, filePath); } catch (IOException e) { - log.error("Exception while trying to migrate old quotes file: ", e); + TheCommander.LOGGER.error("Exception while trying to migrate old quotes file: ", e); } } @@ -83,7 +84,7 @@ public void migrate() { * @param path the path of the file to migrate */ private void migrateUnversioned(final Path path) throws IOException { - log.warn("Found old unversioned quotes file... migration started."); + TheCommander.LOGGER.warn("Found old unversioned quotes file... migration started."); final var type = new TypeToken>() { }.getType(); final List newData = new ArrayList<>(); @@ -101,7 +102,7 @@ private void migrateUnversioned(final Path path) throws IOException { final var db = VersionedDatabase.inMemory(Quotes.CURRENT_SCHEMA_VERSION, newData); NO_PRETTY_PRINTING.toJson(db.toJson(NO_PRETTY_PRINTING), writer); } finally { - log.warn("Finished migrating old quotes file."); + TheCommander.LOGGER.warn("Finished migrating old quotes file."); } } } @@ -117,7 +118,7 @@ private static void renameMigratedFile(final Path file) { Files.move(file, file.resolveSibling(file.getFileName() + MIGRATED_FILE_EXTENSION), StandardCopyOption.REPLACE_EXISTING); } catch (final IOException exception) { - log.warn("Failed to rename migrated data file {}", file, exception); + TheCommander.LOGGER.warn("Failed to rename migrated data file {}", file, exception); } } } diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/migrate/TricksMigrator.java b/src/commander/java/com/mcmoddev/mmdbot/commander/migrate/TricksMigrator.java index 62a472c8..29d53a7a 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/migrate/TricksMigrator.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/migrate/TricksMigrator.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -22,6 +22,7 @@ import com.google.common.reflect.TypeToken; import com.google.gson.JsonObject; +import com.mcmoddev.mmdbot.commander.TheCommander; import com.mcmoddev.mmdbot.commander.tricks.EmbedTrick; import com.mcmoddev.mmdbot.commander.tricks.ScriptTrick; import com.mcmoddev.mmdbot.commander.tricks.StringTrick; @@ -61,7 +62,7 @@ public void migrate() { try { migrateOldFiles(); } catch (IOException e) { - log.error("Exception while trying to migrate old tricks file: ", e); + TheCommander.LOGGER.error("Exception while trying to migrate old tricks file: ", e); } } @@ -82,7 +83,7 @@ private void migrateOldFiles() throws IOException { return; } } - log.warn("Found old tricks file... migration started."); + TheCommander.LOGGER.warn("Found old tricks file... migration started."); final var type = new TypeToken>() { }.getType(); final List newData = new ArrayList<>(); @@ -105,7 +106,7 @@ private void migrateOldFiles() throws IOException { NO_PRETTY_PRINTING.toJson(db.toJson(NO_PRETTY_PRINTING), writer); } finally { renameMigratedFile(oldFilePath); - log.warn("Finished migrating old tricks file."); + TheCommander.LOGGER.warn("Finished migrating old tricks file."); } } } @@ -121,7 +122,7 @@ private static void renameMigratedFile(final Path file) { Files.move(file, file.resolveSibling(file.getFileName() + MIGRATED_FILE_EXTENSION), StandardCopyOption.REPLACE_EXISTING); } catch (final IOException exception) { - log.warn("Failed to rename migrated data file {}", file, exception); + TheCommander.LOGGER.warn("Failed to rename migrated data file {}", file, exception); } } } diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/IQuote.java b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/IQuote.java index 72299a2c..f20f16ff 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/IQuote.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/IQuote.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/NullQuote.java b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/NullQuote.java index 33dbd647..a66c314a 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/NullQuote.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/NullQuote.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/Quote.java b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/Quote.java index 4287a429..4c28353d 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/Quote.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/Quote.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/Quotes.java b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/Quotes.java index 70c26dd1..4d2ed491 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/Quotes.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/Quotes.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/StringQuote.java b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/StringQuote.java index 14a0658a..68a60717 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/StringQuote.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/StringQuote.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/UserReference.java b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/UserReference.java index ca3397d2..beffa446 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/UserReference.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/quotes/UserReference.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/Reminder.java b/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/Reminder.java index a9c379bd..9985d4c2 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/Reminder.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/Reminder.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/Reminders.java b/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/Reminders.java index 254196b2..9e0b1160 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/Reminders.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/Reminders.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/SnoozingListener.java b/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/SnoozingListener.java index d011abe2..fe002bc2 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/SnoozingListener.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/reminders/SnoozingListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/EmbedTrick.java b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/EmbedTrick.java index efde463b..7927fc93 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/EmbedTrick.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/EmbedTrick.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/ScriptTrick.java b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/ScriptTrick.java index aead7013..c4ed4987 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/ScriptTrick.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/ScriptTrick.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/StringTrick.java b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/StringTrick.java index 7321c675..6055f926 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/StringTrick.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/StringTrick.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/Trick.java b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/Trick.java index f1f14875..6b14ad38 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/Trick.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/Trick.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/TrickContext.java b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/TrickContext.java index f80ee3f3..44f6c96f 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/TrickContext.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/TrickContext.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/Tricks.java b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/Tricks.java index a7a9bbbd..d18560fd 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/Tricks.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/tricks/Tricks.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/SharedVersionHelpers.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/SharedVersionHelpers.java index 3bac85ab..4348748b 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/SharedVersionHelpers.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/SharedVersionHelpers.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/UpdateNotifier.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/UpdateNotifier.java index ecdd19e9..8e179ace 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/UpdateNotifier.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/UpdateNotifier.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/UpdateNotifiers.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/UpdateNotifiers.java index 61a45585..6a46649f 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/UpdateNotifiers.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/UpdateNotifiers.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/BlockbenchUpdateNotifier.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/BlockbenchUpdateNotifier.java index e883e13b..487e801d 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/BlockbenchUpdateNotifier.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/BlockbenchUpdateNotifier.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/BlockbenchVersionHelper.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/BlockbenchVersionHelper.java index 16351182..00169381 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/BlockbenchVersionHelper.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/BlockbenchVersionHelper.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/GithubRelease.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/GithubRelease.java index ff020546..6d7c9120 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/GithubRelease.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/blockbench/GithubRelease.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/fabric/FabricApiUpdateNotifier.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/fabric/FabricApiUpdateNotifier.java index 537ad25e..39c9a6b8 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/fabric/FabricApiUpdateNotifier.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/fabric/FabricApiUpdateNotifier.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/fabric/FabricVersionHelper.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/fabric/FabricVersionHelper.java index 7c81973d..8342bf42 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/fabric/FabricVersionHelper.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/fabric/FabricVersionHelper.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeUpdateNotifier.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeUpdateNotifier.java index ff271ddb..598f74ec 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeUpdateNotifier.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeUpdateNotifier.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeVersion.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeVersion.java index 5e772ad1..c9b64a72 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeVersion.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeVersion.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeVersionHelper.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeVersionHelper.java index 048adbe8..988ae5ca 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeVersionHelper.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/ForgeVersionHelper.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/MinecraftForgeVersion.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/MinecraftForgeVersion.java index 1d44aeee..e188d553 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/MinecraftForgeVersion.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/forge/MinecraftForgeVersion.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/minecraft/MinecraftUpdateNotifier.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/minecraft/MinecraftUpdateNotifier.java index dd714a1d..cea8b027 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/minecraft/MinecraftUpdateNotifier.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/minecraft/MinecraftUpdateNotifier.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/minecraft/MinecraftVersionHelper.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/minecraft/MinecraftVersionHelper.java index c7d22040..2a56e345 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/minecraft/MinecraftVersionHelper.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/minecraft/MinecraftVersionHelper.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeUpdateNotifier.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeUpdateNotifier.java index f50ea591..63df5b17 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeUpdateNotifier.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeUpdateNotifier.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeVersionHelper.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeVersionHelper.java index 50c26b73..40486006 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeVersionHelper.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeVersionHelper.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeVersions.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeVersions.java index e56cb0db..92d5a84c 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeVersions.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/neoforge/NeoForgeVersions.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/parchment/ParchmentUpdateNotifier.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/parchment/ParchmentUpdateNotifier.java index a22dd341..c663cf3b 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/parchment/ParchmentUpdateNotifier.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/parchment/ParchmentUpdateNotifier.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/parchment/ParchmentVersionHelper.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/parchment/ParchmentVersionHelper.java index 38accd32..feda9e3d 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/parchment/ParchmentVersionHelper.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/parchment/ParchmentVersionHelper.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/quilt/QuiltUpdateNotifier.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/quilt/QuiltUpdateNotifier.java index 81c9669b..0e0486f9 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/quilt/QuiltUpdateNotifier.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/quilt/QuiltUpdateNotifier.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/quilt/QuiltVersionHelper.java b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/quilt/QuiltVersionHelper.java index 8e3f635d..acafd835 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/quilt/QuiltVersionHelper.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/quilt/QuiltVersionHelper.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/EventListeners.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/EventListeners.java index e3dcdfb1..7582cb56 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/EventListeners.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/EventListeners.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/StringSerializer.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/StringSerializer.java index a00f504d..47e3a519 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/StringSerializer.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/StringSerializer.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/TheCommanderUtilities.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/TheCommanderUtilities.java index f2bb1fcf..a2afe291 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/TheCommanderUtilities.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/TheCommanderUtilities.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/ComChannelsDAO.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/ComChannelsDAO.java index 5877273b..347a9bf9 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/ComChannelsDAO.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/ComChannelsDAO.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/ReactionRolePanels.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/ReactionRolePanels.java index ec01e169..6c387707 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/ReactionRolePanels.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/ReactionRolePanels.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/UpdateNotifiersDAO.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/UpdateNotifiersDAO.java index d9756a8a..f0350363 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/UpdateNotifiersDAO.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/dao/UpdateNotifiersDAO.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/MCVersions.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/MCVersions.java index a2465cd0..baf4e78f 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/MCVersions.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/MCVersions.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/MinecraftVersion.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/MinecraftVersion.java index 330ee19e..323d522c 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/MinecraftVersion.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/MinecraftVersion.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/VersionManifest.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/VersionManifest.java index 93e35634..30304849 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/VersionManifest.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/mc/VersionManifest.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/ChannelMessageChecker.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/ChannelMessageChecker.java index 699ddb8c..1c4aeeb7 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/ChannelMessageChecker.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/ChannelMessageChecker.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/ComChannelsArchiver.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/ComChannelsArchiver.java index 6a1f7556..181b376d 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/ComChannelsArchiver.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/ComChannelsArchiver.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/OldChannelsHelper.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/OldChannelsHelper.java index de3feab7..ea460a5e 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/OldChannelsHelper.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/oldchannels/OldChannelsHelper.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/ScriptingContext.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/ScriptingContext.java index 6babce78..ff969683 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/ScriptingContext.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/ScriptingContext.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/ScriptingUtils.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/ScriptingUtils.java index 64c38945..fe27a87d 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/ScriptingUtils.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/ScriptingUtils.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptEmbed.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptEmbed.java index f972c8b2..16d0018a 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptEmbed.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptEmbed.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptRegion.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptRegion.java index 2a0dedbd..e1db0a6d 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptRegion.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptRegion.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptRoleIcon.java b/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptRoleIcon.java index e959f429..8b4e920e 100644 --- a/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptRoleIcon.java +++ b/src/commander/java/com/mcmoddev/mmdbot/commander/util/script/object/ScriptRoleIcon.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/OnlyOneBotRunner.java b/src/core/java/com/mcmoddev/mmdbot/core/OnlyOneBotRunner.java index 0b51080e..238ad53e 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/OnlyOneBotRunner.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/OnlyOneBotRunner.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/RunBots.java b/src/core/java/com/mcmoddev/mmdbot/core/RunBots.java index 5c58eef2..2adee4b2 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/RunBots.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/RunBots.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/ULStatusListener.java b/src/core/java/com/mcmoddev/mmdbot/core/ULStatusListener.java index 2bf12ae1..9fe28c34 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/ULStatusListener.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/ULStatusListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/annotation/ExposeScripting.java b/src/core/java/com/mcmoddev/mmdbot/core/annotation/ExposeScripting.java index a1c9eadc..37163679 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/annotation/ExposeScripting.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/annotation/ExposeScripting.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/annotation/RegisterEventListener.java b/src/core/java/com/mcmoddev/mmdbot/core/annotation/RegisterEventListener.java index 4172bebf..9a33e26c 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/annotation/RegisterEventListener.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/annotation/RegisterEventListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/bot/Bot.java b/src/core/java/com/mcmoddev/mmdbot/core/bot/Bot.java index 0c0611cc..b18ff97c 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/bot/Bot.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/bot/Bot.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/bot/BotRegistry.java b/src/core/java/com/mcmoddev/mmdbot/core/bot/BotRegistry.java index 380717b3..92b35efd 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/bot/BotRegistry.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/bot/BotRegistry.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/bot/BotType.java b/src/core/java/com/mcmoddev/mmdbot/core/bot/BotType.java index fd237cd0..940ad4ad 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/bot/BotType.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/bot/BotType.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/bot/RegisterBotType.java b/src/core/java/com/mcmoddev/mmdbot/core/bot/RegisterBotType.java index 12483595..d6c9900a 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/bot/RegisterBotType.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/bot/RegisterBotType.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/CommandUpserter.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/CommandUpserter.java index 10e87c51..f9986c66 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/CommandUpserter.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/CommandUpserter.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/Component.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/Component.java index 114a255a..06cee372 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/Component.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/Component.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentListener.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentListener.java index 0ab07b97..6d395861 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentListener.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentListeners.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentListeners.java index 86a894c0..29234e60 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentListeners.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentListeners.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentManager.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentManager.java index f01bdc8e..3fcaade8 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentManager.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/ComponentManager.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/DeferredComponentListenerRegistry.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/DeferredComponentListenerRegistry.java index 7afcf061..b494d532 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/DeferredComponentListenerRegistry.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/DeferredComponentListenerRegistry.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/BaseItemComponentInteractionContext.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/BaseItemComponentInteractionContext.java index d4e0ac27..367aed7a 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/BaseItemComponentInteractionContext.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/BaseItemComponentInteractionContext.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/ButtonInteractionContext.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/ButtonInteractionContext.java index 2fde64f6..00c9c776 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/ButtonInteractionContext.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/ButtonInteractionContext.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/ModalInteractionContext.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/ModalInteractionContext.java index 84ce93ec..5178c226 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/ModalInteractionContext.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/ModalInteractionContext.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/SelectMenuInteractionContext.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/SelectMenuInteractionContext.java index abb8c17c..1b606481 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/SelectMenuInteractionContext.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/context/SelectMenuInteractionContext.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/storage/ComponentStorage.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/storage/ComponentStorage.java index 275b593d..636d59f5 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/storage/ComponentStorage.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/storage/ComponentStorage.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/storage/SQLComponentStorage.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/storage/SQLComponentStorage.java index 1b2199f6..ced49572 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/component/storage/SQLComponentStorage.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/component/storage/SQLComponentStorage.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/context/CommandContext.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/context/CommandContext.java index 9f81131b..b2f64c2b 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/context/CommandContext.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/context/CommandContext.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/context/PrefixCommandContext.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/context/PrefixCommandContext.java index 5ad0d0cb..71eb44ba 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/context/PrefixCommandContext.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/context/PrefixCommandContext.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/context/SentMessage.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/context/SentMessage.java index a2984ed2..6b7aac96 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/context/SentMessage.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/context/SentMessage.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/context/SlashCommandContext.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/context/SlashCommandContext.java index ce747ec7..929275f4 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/context/SlashCommandContext.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/context/SlashCommandContext.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatedCommand.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatedCommand.java index db813568..d5071594 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatedCommand.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatedCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/Paginator.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/Paginator.java index 93154379..04ecd267 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/Paginator.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/Paginator.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatorBuilder.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatorBuilder.java index e97e8126..49af1174 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatorBuilder.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatorBuilder.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatorImpl.java b/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatorImpl.java index a7abfb14..6945e9c2 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatorImpl.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/commands/paginate/PaginatorImpl.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/common/ScamDetector.java b/src/core/java/com/mcmoddev/mmdbot/core/common/ScamDetector.java index d2e1cf56..2fc9a1e5 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/common/ScamDetector.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/common/ScamDetector.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/database/DataMigrator.java b/src/core/java/com/mcmoddev/mmdbot/core/database/DataMigrator.java index 3fd4730e..2ee36ebf 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/database/DataMigrator.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/database/DataMigrator.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/database/MigratorCluster.java b/src/core/java/com/mcmoddev/mmdbot/core/database/MigratorCluster.java index 94e390ca..082dbb1f 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/database/MigratorCluster.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/database/MigratorCluster.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/database/SnowflakeStorage.java b/src/core/java/com/mcmoddev/mmdbot/core/database/SnowflakeStorage.java index b178a95b..5af9f9b3 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/database/SnowflakeStorage.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/database/SnowflakeStorage.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/database/VersionedDataMigrator.java b/src/core/java/com/mcmoddev/mmdbot/core/database/VersionedDataMigrator.java index 634dead8..d68d85ce 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/database/VersionedDataMigrator.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/database/VersionedDataMigrator.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/database/VersionedDatabase.java b/src/core/java/com/mcmoddev/mmdbot/core/database/VersionedDatabase.java index c75d07e4..bbddf1ec 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/database/VersionedDatabase.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/database/VersionedDatabase.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/database/jdbi/JdbiFactories.java b/src/core/java/com/mcmoddev/mmdbot/core/database/jdbi/JdbiFactories.java index fe6dad77..5ac962ee 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/database/jdbi/JdbiFactories.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/database/jdbi/JdbiFactories.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/event/Events.java b/src/core/java/com/mcmoddev/mmdbot/core/event/Events.java index 279f84f3..bd6183a9 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/event/Events.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/event/Events.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/event/customlog/CustomAuditLogEvent.java b/src/core/java/com/mcmoddev/mmdbot/core/event/customlog/CustomAuditLogEvent.java index 34afcaf7..3a6de705 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/event/customlog/CustomAuditLogEvent.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/event/customlog/CustomAuditLogEvent.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/event/customlog/TrickEvent.java b/src/core/java/com/mcmoddev/mmdbot/core/event/customlog/TrickEvent.java index bacf547c..5d69e0aa 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/event/customlog/TrickEvent.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/event/customlog/TrickEvent.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/ModerationEvent.java b/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/ModerationEvent.java index fab09bec..27674bea 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/ModerationEvent.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/ModerationEvent.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/ScamLinkEvent.java b/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/ScamLinkEvent.java index 3c6b104f..159518dc 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/ScamLinkEvent.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/ScamLinkEvent.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/WarningEvent.java b/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/WarningEvent.java index 6ba36c62..4b9f0576 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/WarningEvent.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/event/moderation/WarningEvent.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/Constants.java b/src/core/java/com/mcmoddev/mmdbot/core/util/Constants.java index 82de4f12..78477983 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/Constants.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/Constants.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/DotenvLoader.java b/src/core/java/com/mcmoddev/mmdbot/core/util/DotenvLoader.java index a785d740..64849139 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/DotenvLoader.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/DotenvLoader.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/MessageUtilities.java b/src/core/java/com/mcmoddev/mmdbot/core/util/MessageUtilities.java index 80450070..23b4a286 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/MessageUtilities.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/MessageUtilities.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/ReflectionsUtils.java b/src/core/java/com/mcmoddev/mmdbot/core/util/ReflectionsUtils.java index 62875e95..c104d9b8 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/ReflectionsUtils.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/ReflectionsUtils.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/SemVer.java b/src/core/java/com/mcmoddev/mmdbot/core/util/SemVer.java index 1500ab0d..c39cadb3 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/SemVer.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/SemVer.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/StringReader.java b/src/core/java/com/mcmoddev/mmdbot/core/util/StringReader.java index 4a0505ed..a365e4c5 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/StringReader.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/StringReader.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/StringUtilities.java b/src/core/java/com/mcmoddev/mmdbot/core/util/StringUtilities.java index 45985515..94cdb9b6 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/StringUtilities.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/StringUtilities.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/TaskScheduler.java b/src/core/java/com/mcmoddev/mmdbot/core/util/TaskScheduler.java index 203631b7..3cde0f39 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/TaskScheduler.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/TaskScheduler.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/Utils.java b/src/core/java/com/mcmoddev/mmdbot/core/util/Utils.java index d048bce2..a7af5740 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/Utils.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/Utils.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -52,21 +52,6 @@ public static Thread setThreadDaemon(final Thread thread, final boolean isDaemon return thread; } - /** - * @return the current public IP address of the machine. - */ - public static String getPublicIPAddress() { - try { - URL url = new URL("https://api.ipify.org"); - try (InputStreamReader sr = new InputStreamReader(url.openStream()); - BufferedReader sc = new BufferedReader(sr)) { - return sc.readLine().trim(); - } - } catch (Exception e) { - return null; - } - } - /** * Get the {@link OffsetDateTime} from an Instant value, relative to UTC+0 / GMT+0. * Overtakes the last system which used LocalDateTime which was unpredictable and caused confusion among developers. diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/WarningDocument.java b/src/core/java/com/mcmoddev/mmdbot/core/util/WarningDocument.java index 54f981bf..6f4f9a3e 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/WarningDocument.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/WarningDocument.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/builder/SlashCommandBuilder.java b/src/core/java/com/mcmoddev/mmdbot/core/util/builder/SlashCommandBuilder.java index 7a9dfa2a..8115e1a4 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/builder/SlashCommandBuilder.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/builder/SlashCommandBuilder.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/config/ConfigurateUtils.java b/src/core/java/com/mcmoddev/mmdbot/core/util/config/ConfigurateUtils.java index 50d25d72..1e86a052 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/config/ConfigurateUtils.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/config/ConfigurateUtils.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/config/SnowflakeValue.java b/src/core/java/com/mcmoddev/mmdbot/core/util/config/SnowflakeValue.java index 2b8f7b04..4f0f6319 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/config/SnowflakeValue.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/config/SnowflakeValue.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryDefinition.java b/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryDefinition.java index a9f9efea..7060dc6b 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryDefinition.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryDefinition.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryEntry.java b/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryEntry.java index d3d8e9ba..89689740 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryEntry.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryEntry.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryUtils.java b/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryUtils.java index 37832ed4..ce094d79 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryUtils.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryUtils.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/event/DismissListener.java b/src/core/java/com/mcmoddev/mmdbot/core/util/event/DismissListener.java index b3697366..17b384ad 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/event/DismissListener.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/event/DismissListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/event/OneTimeEventListener.java b/src/core/java/com/mcmoddev/mmdbot/core/util/event/OneTimeEventListener.java index 8fbafc7e..21d7f30e 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/event/OneTimeEventListener.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/event/OneTimeEventListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/event/ThreadedEventListener.java b/src/core/java/com/mcmoddev/mmdbot/core/util/event/ThreadedEventListener.java index e4b2f2a7..68c7de8c 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/event/ThreadedEventListener.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/event/ThreadedEventListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/gist/ExistingGist.java b/src/core/java/com/mcmoddev/mmdbot/core/util/gist/ExistingGist.java index c772082c..0f5ba35e 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/gist/ExistingGist.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/gist/ExistingGist.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/gist/Gist.java b/src/core/java/com/mcmoddev/mmdbot/core/util/gist/Gist.java index 6cc5d078..21081d4c 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/gist/Gist.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/gist/Gist.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/gist/GistUtils.java b/src/core/java/com/mcmoddev/mmdbot/core/util/gist/GistUtils.java index 345df591..9bd06e81 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/gist/GistUtils.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/gist/GistUtils.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/gson/InstantTypeAdapter.java b/src/core/java/com/mcmoddev/mmdbot/core/util/gson/InstantTypeAdapter.java index 5e5f9376..1253dc48 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/gson/InstantTypeAdapter.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/gson/InstantTypeAdapter.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/gson/PatternTypeAdapter.java b/src/core/java/com/mcmoddev/mmdbot/core/util/gson/PatternTypeAdapter.java index 8550191d..b46e627e 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/gson/PatternTypeAdapter.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/gson/PatternTypeAdapter.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/EmbedParser.java b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/EmbedParser.java index d0984146..629eee8c 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/EmbedParser.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/EmbedParser.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/EnabledRolesCommand.java b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/EnabledRolesCommand.java index d4c9dd26..5f632a04 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/EnabledRolesCommand.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/EnabledRolesCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/InteractionData.java b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/InteractionData.java index d5b30893..8e37a666 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/InteractionData.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/InteractionData.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/JdaMessageCache.java b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/JdaMessageCache.java index 333431a0..0fb0db27 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/JdaMessageCache.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/JdaMessageCache.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/JdaMessageCacheImpl.java b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/JdaMessageCacheImpl.java index 89d1e5fe..65d06574 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/JdaMessageCacheImpl.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/JdaMessageCacheImpl.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/MessageCacheBuilder.java b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/MessageCacheBuilder.java index 96b4a087..3663924e 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/MessageCacheBuilder.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/MessageCacheBuilder.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/MessageData.java b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/MessageData.java index 29b2f6f4..f54d66e9 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/MessageData.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/jda/caching/MessageData.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/webhook/WebhookManager.java b/src/core/java/com/mcmoddev/mmdbot/core/util/webhook/WebhookManager.java index 7734b069..066d5b28 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/webhook/WebhookManager.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/webhook/WebhookManager.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/core/java/com/mcmoddev/mmdbot/core/util/webhook/WebhookManagerImpl.java b/src/core/java/com/mcmoddev/mmdbot/core/util/webhook/WebhookManagerImpl.java index 09b04bb2..47ff6a26 100644 --- a/src/core/java/com/mcmoddev/mmdbot/core/util/webhook/WebhookManagerImpl.java +++ b/src/core/java/com/mcmoddev/mmdbot/core/util/webhook/WebhookManagerImpl.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/listener/java/com/mcmoddev/mmdbot/thelistener/TheListener.java b/src/listener/java/com/mcmoddev/mmdbot/thelistener/TheListener.java index a3cc7dee..ca18e0da 100644 --- a/src/listener/java/com/mcmoddev/mmdbot/thelistener/TheListener.java +++ b/src/listener/java/com/mcmoddev/mmdbot/thelistener/TheListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/LeaveJoinEvents.java b/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/LeaveJoinEvents.java index 3d18cb80..9e232fd5 100644 --- a/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/LeaveJoinEvents.java +++ b/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/LeaveJoinEvents.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/MessageEvents.java b/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/MessageEvents.java index 6145eeb8..a151526b 100644 --- a/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/MessageEvents.java +++ b/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/MessageEvents.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/ModerationEvents.java b/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/ModerationEvents.java index 6475b2da..dd53c21e 100644 --- a/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/ModerationEvents.java +++ b/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/ModerationEvents.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/RoleEvents.java b/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/RoleEvents.java index 2ff36aad..430b2e4c 100644 --- a/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/RoleEvents.java +++ b/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/RoleEvents.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/TrickEvents.java b/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/TrickEvents.java index b298c7b5..a5a6de7c 100644 --- a/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/TrickEvents.java +++ b/src/listener/java/com/mcmoddev/mmdbot/thelistener/events/TrickEvents.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/GuildConfig.java b/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/GuildConfig.java index 6a85eda7..eb980bfd 100644 --- a/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/GuildConfig.java +++ b/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/GuildConfig.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/LoggingType.java b/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/LoggingType.java index 11252b04..3917bee3 100644 --- a/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/LoggingType.java +++ b/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/LoggingType.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/Utils.java b/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/Utils.java deleted file mode 100644 index a16f8e4e..00000000 --- a/src/listener/java/com/mcmoddev/mmdbot/thelistener/util/Utils.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; - * Specifically version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 - * USA - * https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html - */ -package com.mcmoddev.mmdbot.thelistener.util; - -import net.dv8tion.jda.api.entities.IMentionable; - -public final class Utils { - - public static String mentionAndID(final long id) { - return "<@" + id + "> (" + id + ")"; - } - - public static String mentionable(final IMentionable mention) { - return mention.getAsMention() + " (" + mention.getId() + ")"; - } - -} diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index d90abfd6..e870a75b 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -12,12 +12,12 @@ - + - + diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/ThePainter.java b/src/painter/java/com/mcmoddev/mmdbot/painter/ThePainter.java index 1d644ecb..88e13f15 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/ThePainter.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/ThePainter.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/command/RescaleCommand.java b/src/painter/java/com/mcmoddev/mmdbot/painter/command/RescaleCommand.java index 0986bf25..2ec8bfff 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/command/RescaleCommand.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/command/RescaleCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/command/TintCommand.java b/src/painter/java/com/mcmoddev/mmdbot/painter/command/TintCommand.java index 3f649051..033349eb 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/command/TintCommand.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/command/TintCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/GenerateIconCommand.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/GenerateIconCommand.java index aaa823cf..4abbb1e7 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/GenerateIconCommand.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/GenerateIconCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/IconConfiguration.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/IconConfiguration.java index a5accaae..09246397 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/IconConfiguration.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/IconConfiguration.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/ServerIconCommand.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/ServerIconCommand.java index 2f1e7ea4..1714b3d0 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/ServerIconCommand.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/ServerIconCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/ServerIconMaker.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/ServerIconMaker.java index 241e06fc..74a568ec 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/ServerIconMaker.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/ServerIconMaker.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/AutomaticIconChanger.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/AutomaticIconChanger.java index 5c6080dd..4232a9f6 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/AutomaticIconChanger.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/AutomaticIconChanger.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/AutomaticIconConfiguration.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/AutomaticIconConfiguration.java index f1976336..0294d06b 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/AutomaticIconConfiguration.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/AutomaticIconConfiguration.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/DayCounter.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/DayCounter.java index 26325bb7..11ff5c26 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/DayCounter.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/DayCounter.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconEnableCommands.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconEnableCommands.java index 2197b4a9..86c36aed 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconEnableCommands.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconEnableCommands.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconGetCommand.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconGetCommand.java index 16357983..b07788e6 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconGetCommand.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconGetCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSetCommand.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSetCommand.java index bdb27fec..658e9290 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSetCommand.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSetCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSetDayCommand.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSetDayCommand.java index 787187cc..d864cf25 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSetDayCommand.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSetDayCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSimulateCommand.java b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSimulateCommand.java index b5126516..eca9f40f 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSimulateCommand.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/servericon/auto/command/AutoIconSimulateCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/util/CooldownManager.java b/src/painter/java/com/mcmoddev/mmdbot/painter/util/CooldownManager.java index e4031156..aa1da060 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/util/CooldownManager.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/util/CooldownManager.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/util/GifSequenceWriter.java b/src/painter/java/com/mcmoddev/mmdbot/painter/util/GifSequenceWriter.java index 2d75e994..04342078 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/util/GifSequenceWriter.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/util/GifSequenceWriter.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/util/ImageUtils.java b/src/painter/java/com/mcmoddev/mmdbot/painter/util/ImageUtils.java index 73e9bdc9..6f7a1818 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/util/ImageUtils.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/util/ImageUtils.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/util/dao/AutoIconDAO.java b/src/painter/java/com/mcmoddev/mmdbot/painter/util/dao/AutoIconDAO.java index ce53e7da..4877106e 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/util/dao/AutoIconDAO.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/util/dao/AutoIconDAO.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/util/dao/DayCounterDAO.java b/src/painter/java/com/mcmoddev/mmdbot/painter/util/dao/DayCounterDAO.java index 4f14599b..efd07ea1 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/util/dao/DayCounterDAO.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/util/dao/DayCounterDAO.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/util/migration/AutoIconsMigration.java b/src/painter/java/com/mcmoddev/mmdbot/painter/util/migration/AutoIconsMigration.java index 1fc1c8b0..ecb0839b 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/util/migration/AutoIconsMigration.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/util/migration/AutoIconsMigration.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/painter/java/com/mcmoddev/mmdbot/painter/util/migration/DayCounterMigration.java b/src/painter/java/com/mcmoddev/mmdbot/painter/util/migration/DayCounterMigration.java index 6e00a6aa..07dd72b3 100644 --- a/src/painter/java/com/mcmoddev/mmdbot/painter/util/migration/DayCounterMigration.java +++ b/src/painter/java/com/mcmoddev/mmdbot/painter/util/migration/DayCounterMigration.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/test/java/com/mcmoddev/mmdbot/tests/ComponentsTest.java b/src/test/java/com/mcmoddev/mmdbot/tests/ComponentsTest.java index 4375b11a..3f3190e3 100644 --- a/src/test/java/com/mcmoddev/mmdbot/tests/ComponentsTest.java +++ b/src/test/java/com/mcmoddev/mmdbot/tests/ComponentsTest.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/test/java/com/mcmoddev/mmdbot/tests/DataMigratorTest.java b/src/test/java/com/mcmoddev/mmdbot/tests/DataMigratorTest.java index 38ad3c97..139c8701 100644 --- a/src/test/java/com/mcmoddev/mmdbot/tests/DataMigratorTest.java +++ b/src/test/java/com/mcmoddev/mmdbot/tests/DataMigratorTest.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/test/java/com/mcmoddev/mmdbot/tests/EmoteRolePanels.java b/src/test/java/com/mcmoddev/mmdbot/tests/EmoteRolePanels.java index 7367111c..351b42a2 100644 --- a/src/test/java/com/mcmoddev/mmdbot/tests/EmoteRolePanels.java +++ b/src/test/java/com/mcmoddev/mmdbot/tests/EmoteRolePanels.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/test/java/com/mcmoddev/mmdbot/tests/jda/CastingChannelUnion.java b/src/test/java/com/mcmoddev/mmdbot/tests/jda/CastingChannelUnion.java index 71e3fe38..554026d5 100644 --- a/src/test/java/com/mcmoddev/mmdbot/tests/jda/CastingChannelUnion.java +++ b/src/test/java/com/mcmoddev/mmdbot/tests/jda/CastingChannelUnion.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/test/java/com/mcmoddev/mmdbot/tests/jda/JDATesting.java b/src/test/java/com/mcmoddev/mmdbot/tests/jda/JDATesting.java index 7c008b0e..9776430e 100644 --- a/src/test/java/com/mcmoddev/mmdbot/tests/jda/JDATesting.java +++ b/src/test/java/com/mcmoddev/mmdbot/tests/jda/JDATesting.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/test/java/com/mcmoddev/mmdbot/tests/jda/PunishmentTests.java b/src/test/java/com/mcmoddev/mmdbot/tests/jda/PunishmentTests.java index e2b491a3..72c44928 100644 --- a/src/test/java/com/mcmoddev/mmdbot/tests/jda/PunishmentTests.java +++ b/src/test/java/com/mcmoddev/mmdbot/tests/jda/PunishmentTests.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/TheWatcher.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/TheWatcher.java index 68277461..a3179a7b 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/TheWatcher.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/TheWatcher.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -53,13 +53,11 @@ import com.mcmoddev.mmdbot.watcher.punishments.Punishment; import com.mcmoddev.mmdbot.watcher.rules.RuleCommand; import com.mcmoddev.mmdbot.watcher.rules.UpdateRulesCommand; -import com.mcmoddev.mmdbot.watcher.util.BotConfig; import com.mcmoddev.mmdbot.watcher.util.Configuration; import io.github.cdimascio.dotenv.Dotenv; import io.github.matyrobbrt.curseforgeapi.util.Utils; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.JDABuilder; -import net.dv8tion.jda.api.entities.Activity; import net.dv8tion.jda.api.entities.Member; import net.dv8tion.jda.api.events.Event; import net.dv8tion.jda.api.exceptions.InvalidTokenException; @@ -184,7 +182,6 @@ public static JDA getJDA() { private Jdbi jdbi; private CommandClient commandClient; private Configuration config; - private BotConfig oldConfig; private ConfigurationReference configRef; private final Dotenv dotenv; private final Path runPath; @@ -197,7 +194,6 @@ public TheWatcher(final Path runPath, final Dotenv dotenv) { @Override public void start() { instance = this; - oldConfig = new BotConfig(runPath.resolve("old_config.toml")); //Events.MISC_BUS.addListener((final TaskScheduler.CollectTasksEvent event) -> event.addTask(new RuleAgreementChecker(this::getJda), //0, 1, TimeUnit.DAYS)); @@ -299,7 +295,6 @@ public void start() { .disableCache(CacheFlag.SCHEDULED_EVENTS) .enableCache(CacheFlag.FORUM_TAGS) .setEnabledIntents(INTENTS); - if (oldConfig.hasActivity()) builder.setActivity(Activity.of(oldConfig.getActivityType(), oldConfig.getActivityName())); jda = builder.build().awaitReady(); } catch (final InvalidTokenException exception) { LOGGER.error("Error logging in the bot! Please give the bot a valid token in the config file.", exception); @@ -376,8 +371,4 @@ public static boolean isBotMaintainer(final Member member) { public static Jdbi database() { return getInstance().getJdbi(); } - - public static BotConfig getOldConfig() { - return getInstance().oldConfig; - } } diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/information/InviteCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/information/InviteCommand.java index b5c36e47..925c9549 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/information/InviteCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/information/InviteCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/management/RefreshScamLinksCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/management/RefreshScamLinksCommand.java index 6d4bca5a..191daaa8 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/management/RefreshScamLinksCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/management/RefreshScamLinksCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/BanCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/BanCommand.java index e385148d..d9da2784 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/BanCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/BanCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/KickCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/KickCommand.java index c42a842d..a10f312e 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/KickCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/KickCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/MuteCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/MuteCommand.java index 592aba24..c5ad3fd9 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/MuteCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/MuteCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/ReactCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/ReactCommand.java index 0c0bf64c..ce24c7a0 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/ReactCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/ReactCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/UnbanCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/UnbanCommand.java index bcb78664..d7aeee1d 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/UnbanCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/UnbanCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/UnmuteCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/UnmuteCommand.java index 61e50b0d..414f2282 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/UnmuteCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/UnmuteCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/WarningCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/WarningCommand.java index e15883d9..1da81d54 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/WarningCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/commands/moderation/WarningCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/EventReactionAdded.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/EventReactionAdded.java index 92480d90..9c09a556 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/EventReactionAdded.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/EventReactionAdded.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -87,21 +87,21 @@ public final class EventReactionAdded extends ListenerAdapter { public void onMessageReactionAdd(final MessageReactionAddEvent event) { if (!event.isFromGuild() || !event.isFromType(ChannelType.GUILD_PUBLIC_THREAD)) return; final var channel = event.getChannel().asThreadChannel(); - if (TheWatcher.getOldConfig().getChannel("requests.main") != channel.getParentChannel().getIdLong()) return; + if (TheWatcher.getInstance().getConfig().channels().requestChannelId != channel.getParentChannel().getIdLong()) return; final var message = channel.retrieveMessageById(event.getMessageId()) .complete(); if (message == null) { return; } - final double removalThreshold = TheWatcher.getOldConfig().getRequestsRemovalThreshold(); - final double warningThreshold = TheWatcher.getOldConfig().getRequestsWarningThreshold(); + final double removalThreshold = TheWatcher.getInstance().getConfig().requests().removalThreshold; + final double warningThreshold = TheWatcher.getInstance().getConfig().requests().warningThreshold; if (removalThreshold == 0 || warningThreshold == 0) { return; } final var guild = event.getGuild(); - final int freshnessDuration = TheWatcher.getOldConfig().getRequestFreshnessDuration(); + final int freshnessDuration = TheWatcher.getInstance().getConfig().requests().requestFreshnessDuration; if (freshnessDuration > 0) { final OffsetDateTime creationTime = message.getTimeCreated(); final var now = OffsetDateTime.now(); @@ -110,9 +110,9 @@ public void onMessageReactionAdd(final MessageReactionAddEvent event) { } } - final List badReactionsList = TheWatcher.getOldConfig().getBadRequestsReactions(); - final List goodReactionsList = TheWatcher.getOldConfig().getGoodRequestsReactions(); - final List needsImprovementReactionsList = TheWatcher.getOldConfig().getRequestsNeedsImprovementReactions(); + final List badReactionsList = TheWatcher.getInstance().getConfig().requests().badRequestReactions(); + final List goodReactionsList = TheWatcher.getInstance().getConfig().requests().goodRequestReactions(); + final List needsImprovementReactionsList = TheWatcher.getInstance().getConfig().requests().needsImprovementReactions(); final var badReactions = getMatchingReactions(message, badReactionsList::contains); final List signedOffStaff = badReactions.stream() @@ -138,8 +138,8 @@ public void onMessageReactionAdd(final MessageReactionAddEvent event) { // If it hasn't been logged about yet, log about it if (messagesAwaitingSignoff.add(message.getIdLong())) { - final var logChannel = guild.getTextChannelById(TheWatcher.getOldConfig() - .getChannel("events.requests_deletion")); + final var logChannel = guild.getTextChannelById(TheWatcher.getInstance().getConfig().channels() + .requestDeletionChannelId); if (logChannel != null) { final EmbedBuilder builder = new EmbedBuilder(); builder.setTitle("Request awaiting moderator approval"); @@ -175,8 +175,8 @@ public void onMessageReactionAdd(final MessageReactionAddEvent event) { warnedMessages.remove(message); - final var logChannel = guild.getTextChannelById(TheWatcher.getOldConfig() - .getChannel("events.requests_deletion")); + final var logChannel = guild.getTextChannelById(TheWatcher.getInstance().getConfig().channels() + .requestDeletionChannelId); if (logChannel != null) { final EmbedBuilder builder = new EmbedBuilder(); builder.setTitle("Deleted request by community review"); diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/ForumListener.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/ForumListener.java index 9483e1e2..6586be8b 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/ForumListener.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/ForumListener.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/PersistedRolesEvents.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/PersistedRolesEvents.java index 2435de29..5d4539c1 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/PersistedRolesEvents.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/event/PersistedRolesEvents.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/NewAccount.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/NewAccount.java index d03b3d36..72cbfad7 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/NewAccount.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/NewAccount.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PhishingLink.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PhishingLink.java index 3be33e86..b3d33e9c 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PhishingLink.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PhishingLink.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PunishableAction.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PunishableAction.java index 60707ca5..df464534 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PunishableAction.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PunishableAction.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PunishableActions.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PunishableActions.java index 382dc47f..f01dd60f 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PunishableActions.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/PunishableActions.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/Punishment.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/Punishment.java index 62dea4b8..11b5974f 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/Punishment.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/Punishment.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/SpamPing.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/SpamPing.java index f4488d6b..310d458e 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/SpamPing.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/punishments/SpamPing.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleAgreementChecker.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleAgreementChecker.java index ee512446..19db093f 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleAgreementChecker.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleAgreementChecker.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleCommand.java index 413340cb..627e405e 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleData.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleData.java index d07bab51..86849abc 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleData.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleData.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleParser.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleParser.java index 85256ffc..5107f20c 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleParser.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/RuleParser.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/UpdateRulesCommand.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/UpdateRulesCommand.java index 311084b6..94be78f1 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/UpdateRulesCommand.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/rules/UpdateRulesCommand.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/BotConfig.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/BotConfig.java deleted file mode 100644 index 57bd1d2c..00000000 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/BotConfig.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; - * Specifically version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 - * USA - * https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html - */ -package com.mcmoddev.mmdbot.watcher.util; - -import com.electronwill.nightconfig.core.CommentedConfig; -import com.electronwill.nightconfig.core.ConfigFormat; -import com.electronwill.nightconfig.core.UnmodifiableConfig; -import com.electronwill.nightconfig.core.file.CommentedFileConfig; -import com.electronwill.nightconfig.core.file.FileNotFoundAction; -import com.electronwill.nightconfig.toml.TomlFormat; -import com.google.common.io.Resources; -import com.jagrosh.jdautilities.commons.utils.SafeIdUtil; -import net.dv8tion.jda.api.entities.Activity; - -import java.nio.file.Path; -import java.util.Collections; -import java.util.List; -import java.util.Optional; -import java.util.stream.Collectors; - -/** - * The configuration holder for the bot. - * - * TODO move to {@link Configuration} - * - * @author sciwhiz12 - */ -@Deprecated -public final class BotConfig { - - /** - * The Config. - */ - private final CommentedFileConfig config; - - /** - * The Newly generated. - */ - private boolean newlyGenerated; - - /** - * Instantiates a new Bot config. - * - * @param configFile the config file - */ - public BotConfig(final Path configFile) { - this(configFile, TomlFormat.instance()); - } - - /** - * Instantiates a new Bot config. - * - * @param configFile the config file - * @param configFormat the config format - */ - public BotConfig(final Path configFile, final ConfigFormat configFormat) { - this.newlyGenerated = false; - this.config = CommentedFileConfig.builder(configFile, configFormat) - .autoreload() - .onFileNotFound((file, format) -> { - this.newlyGenerated = true; - //noinspection UnstableApiUsage - return FileNotFoundAction.copyData(Resources.getResource("default-config.toml")) - .run(file, format); - }) - .preserveInsertionOrder() - .build(); - config.load(); - } - - /** - * Returns the snowflake ID of the guild where this bot resides, or {@code 0L} is none is configured. - * - * @return The snowflake ID of the guild - */ - public long getGuildID() { - return SafeIdUtil.safeConvert(getAliased("bot.guildId", getAliases())); - } - - /** - * Returns the table of aliases, in the form of an {@link UnmodifiableConfig}. - *

- * Aliases are used in entries that require snowflake IDs to substitute the ID with a human-readable - * identifier. - * - * @return The table of aliases - */ - public Optional getAliases() { - return config.getOptional("aliases"); - } - - /** - * Returns the snowflake ID of the given channel based on the configuration, or {@code 0L} if none is configured. - *

- * The channel key consists of ASCII letters, optionally separated by periods/full stops ({@code .}) for connoting - * categories. - * - * @param channelKey The channel key - * @return The snowflake ID of the given channel key, or {@code 0L} - */ - public long getChannel(final String channelKey) { - return SafeIdUtil.safeConvert(getAliased("channels." + channelKey, getAliases())); - } - - /** - * Returns the amount of time in days; where a request is actionable using the requests warning and removal system. - *

- * A request that has existed for longer that this duration (a "stale request") will not cause the warning or - * removal threshold to trip when reacted to by users. - *

- * A value of {@code 0} disables this freshness functionality, and allows any request to be actionable. - * - * @return The time in days for a request to be actionable by the warning system - */ - public int getRequestFreshnessDuration() { - return config.getIntOrElse("requests.freshness_duration", 0); - } - - /** - * Returns the list of snowflake IDs of the reaction emotes for bad requests. - * - * @return The list of snowflake IDs of bad request reaction emotes - */ - public List getBadRequestsReactions() { - return getAliasedSnowflakeList("requests.emotes.bad", getAliases()) - .orElseGet(Collections::emptyList); - } - - /** - * Returns the list of snowflake IDs of the reaction emotes for requests that need improvement. - *

- * These reaction emotes carry half the weight of the {@link #getBadRequestsReactions() bad requests reactions}. - * - * @return The list of snowflake IDs of needs improvement request reaction emotes - */ - public List getRequestsNeedsImprovementReactions() { - return getAliasedSnowflakeList("requests.emotes.needs_improvement", getAliases()) - .orElseGet(Collections::emptyList); - } - - /** - * Returns the list of snowflake IDs of the reaction emotes for good requests. - * - * @return The list of snowflake IDs of good request reaction emotes - */ - public List getGoodRequestsReactions() { - return getAliasedSnowflakeList("requests.emotes.good", getAliases()) - .orElseGet(Collections::emptyList); - } - - /** - * Returns the request reaction threshold before a user is warned of their request being potentially removed. - * - * @return The request warning threshold - */ - public double getRequestsWarningThreshold() { - return config.getOrElse("requests.thresholds.warning", 0.0d).doubleValue(); - } - - /** - * Returns the request reaction threshold before a request is removed. - * - * @return The request removal threshold - */ - public double getRequestsRemovalThreshold() { - return config.getOrElse("requests.thresholds.removal", 0.0d).doubleValue(); - } - - /** - * Gets aliased snowflake list. - * - * @param path the path - * @param aliases the aliases - * @return List. aliased snowflake list - */ - private Optional> getAliasedSnowflakeList(final String path, - final Optional aliases) { - return config.>getOptional(path) - .filter(list -> !list.isEmpty()) - .map(strings -> strings.stream() - .map(str -> aliases.flatMap(cfg -> cfg.getOptional(str)).orElse(str)) - .map(SafeIdUtil::safeConvert) - .filter(snowflake -> snowflake != 0) - .collect(Collectors.toList())); - } - - /** - * Gets aliased. - * - * @param key the key - * @param aliases the aliases - * @return String. aliased - */ - private String getAliased(final String key, final Optional aliases) { - return config.getOptional(key) - .map(str -> aliases.flatMap(cfg -> cfg.getOptional(str)).orElse(str)) - .orElse(""); - } - - public boolean hasActivity() { - return !config.getOrElse("bot.activity.type", "").isBlank(); - } - - public Activity.ActivityType getActivityType() { - return Activity.ActivityType.valueOf(config.getOrElse("bot.activity.type", "PLAYING")); - } - - public String getActivityName() { - return config.getOrElse("bot.activity.name", ""); - } -} diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/Configuration.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/Configuration.java index b135f537..dac26575 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/Configuration.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/Configuration.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -156,6 +156,69 @@ public Channels channels() { @ConfigSerializable public static final class Channels { + @Required + @Setting("request_channel_id") + @Comment("The channel or forum ID for requests and job postings.") + public Long requestChannelId = 0L; + + @Required + @Setting("request_deletion_channel_id") + @Comment("The channel ID for request deletion notifications.") + public Long requestDeletionChannelId = 0L; + } + + @Required + @Setting("requests") + @Comment("Requests configuration") + private Requests requests = new Requests(); + + public Requests requests() { + return requests; + } + + @ConfigSerializable + public static final class Requests { + @Required + @Setting("warning_threshold") + @Comment("Returns the threshold before a user is warned about their request being potentially removed.") + public Double warningThreshold = 0.0D; + + @Required + @Setting("removal_threshold") + @Comment("Returns the threshold before a users request is removed.") + public Double removalThreshold = 0.0D; + @Required + @Setting("request_freshness_duration") + @Comment("Returns the amount of time in days where a request is actionable using the requests warning and removal system.") + public int requestFreshnessDuration = 0; + + @Required + @Setting("good_request_reactions") + @Comment("A list of snowflake ID's of the reaction emotes for requests that are good.") + private List goodRequestReactions = new ArrayList<>(); + + public List goodRequestReactions() { + return goodRequestReactions; + } + + @Required + @Setting("needs_improvement_reactions") + @Comment("A list of snowflake ID's of the reaction emotes for requests that need improvements. " + + "These carry half the weight of bad request reactions.") + private List needsImprovementReactions = new ArrayList<>(); + + public List needsImprovementReactions() { + return needsImprovementReactions; + } + + @Required + @Setting("bad_request_reactions") + @Comment("A list of snowflake ID's of the reaction emotes for requests that are bad.") + private List badRequestReactions = new ArrayList<>(); + + public List badRequestReactions() { + return badRequestReactions; + } } } diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/References.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/References.java deleted file mode 100644 index 52b16254..00000000 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/References.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; - * Specifically version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 - * USA - * https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html - */ -package com.mcmoddev.mmdbot.watcher.util; - -/** - * Store settings that don't really change in here. - * - * @author KiriCattus - */ -public class References { - - /** - * The name of the bot in code. - */ - public static final String NAME = "MMDBot"; - - /** - * The constant COMMUNITY_CHANNEL_OWNER_PERMISSIONS. - */ - public static final String COMMUNITY_CHANNEL_OWNER_PERMISSIONS = "community_channels.owner_permissions"; - - /** - * The constant COMMANDS. - */ - public static final String COMMANDS = "commands."; - -} diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/Invites.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/Invites.java index a80c1dbb..f25ef361 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/Invites.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/Invites.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/PersistedRoles.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/PersistedRoles.java index fe16b8b9..75ad8723 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/PersistedRoles.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/PersistedRoles.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/RulesDAO.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/RulesDAO.java index fec4f41c..ee47d55f 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/RulesDAO.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/RulesDAO.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/Warnings.java b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/Warnings.java index 4699f66d..20df2606 100644 --- a/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/Warnings.java +++ b/src/watcher/java/com/mcmoddev/mmdbot/watcher/util/database/Warnings.java @@ -1,6 +1,6 @@ /* * MMDBot - https://github.com/MinecraftModDevelopment/MMDBot - * Copyright (C) 2016-2023 + * Copyright (C) 2016-2024 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public