Skip to content

Commit

Permalink
Update to latest DazzleConf (see also #216)
Browse files Browse the repository at this point in the history
  • Loading branch information
A248 committed Jul 9, 2023
1 parent de17b59 commit a3c093e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* LibertyBans
* Copyright © 2022 Anand Beh
* Copyright © 2023 Anand Beh
*
* LibertyBans is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
Expand Down Expand Up @@ -102,7 +102,6 @@ public UsageGlossary usage(StandardUsageGlossary usage) {
return usage;
}

@Singleton
public PluginInfoMessage pluginInfoMessage() {
return PluginInfoMessage.fromResource("contributors");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* LibertyBans
* Copyright © 2022 Anand Beh
* Copyright © 2023 Anand Beh
*
* LibertyBans is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
Expand Down Expand Up @@ -78,7 +78,7 @@ public void send(CmdSender sender) {
"&7" + PluginInfo.DESCRIPTION + "\n" +
"&7" + PluginInfo.URL + "\n" +
"&9-- Contributors --\n" +
"&7Maintainer(s): " + maintainers + "\n" +
"&7Maintainers: " + maintainers + "\n" +
"&7Collaborators: " + collaborators + "\n" +
"&7Commended Users: " + commendedUsers + "\n" +
"&9----------------------------------------------------------\n";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* LibertyBans
* Copyright © 2022 Anand Beh
* Copyright © 2023 Anand Beh
*
* LibertyBans is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
Expand All @@ -21,7 +21,6 @@

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.yaml.snakeyaml.Yaml;
import space.arim.dazzleconf.AuxiliaryKeys;
import space.arim.dazzleconf.ConfigurationFactory;
import space.arim.dazzleconf.ConfigurationOptions;
Expand Down Expand Up @@ -56,7 +55,7 @@ public final class ConfigHolder<C> {
ConfigSerialisers.addTo(optionsBuilder);
CONFIG_OPTIONS = optionsBuilder.build();

YAML_OPTIONS = new SnakeYamlOptions.Builder().yamlSupplier(Yaml::new).commentMode(CommentMode.alternativeWriter()).build();
YAML_OPTIONS = new SnakeYamlOptions.Builder().commentMode(CommentMode.alternativeWriter()).build();
}

public ConfigHolder(Class<C> configClass) {
Expand Down
5 changes: 4 additions & 1 deletion bans-core/src/main/resources/contributors
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ FreakyRed
Gamer153
gepron1x
IceWaffles
thevalleyy
potatoru
SnakeAmazing
thevalleyy
xMikux
zendrique

AGI
Arceus
Athar42
Boy0000
BumbleTree
copyandexecute
Expand All @@ -34,6 +36,7 @@ MattVid
Michael Sykes
Notro
ox
PasteDev
pwnker
RhythmicSys
SleepingTea
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!-- Internal dependencies -->
<jakarta-inject.version>2.0.0</jakarta-inject.version>
<solidinjector.version>1.1.0-RC1</solidinjector.version>
<dazzleconf.version>1.3.0-M1</dazzleconf.version>
<dazzleconf.version>1.3.0-M2</dazzleconf.version>
<slf4j.version>1.7.30</slf4j.version>
<hikari.version>5.0.1</hikari.version>
<hsqldb.version>2.7.1</hsqldb.version>
Expand Down

0 comments on commit a3c093e

Please sign in to comment.