Skip to content

Commit

Permalink
style(conf): Use interface configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos committed Jan 27, 2024
1 parent dd6a3de commit 5ff37b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
import cc.carm.lib.easyplugin.gui.GUIItem;
import cc.carm.lib.easyplugin.gui.GUIType;
import cc.carm.lib.easyplugin.gui.paged.AutoPagedGUI;
import cc.carm.lib.mineconfiguration.bukkit.value.item.ConfiguredItem;
import cc.carm.lib.mineconfiguration.bukkit.value.ConfiguredMessage;
import cc.carm.lib.mineconfiguration.bukkit.value.ConfiguredMessageList;
import cc.carm.lib.mineconfiguration.bukkit.value.item.ConfiguredItem;
import com.artformgames.plugin.votepass.api.data.request.RequestAnswer;
import com.artformgames.plugin.votepass.api.data.request.RequestInformation;
import com.artformgames.plugin.votepass.core.conf.TextMessages;
import com.artformgames.plugin.votepass.game.Main;
import com.artformgames.plugin.votepass.game.conf.PluginMessages;
import com.artformgames.plugin.votepass.game.ui.GUIUtils;
Expand Down Expand Up @@ -143,7 +144,7 @@ public static final class ITEMS extends ConfigurationRoot {

public static final class BOOK extends ConfigurationRoot {

public static final ConfiguredMessageList<BaseComponent[]> RETURN = PluginMessages.list()
public static final ConfiguredMessageList<BaseComponent[]> RETURN = TextMessages.list()
.defaults(
"&0All answers have been displayed.",
"[&2&l[Click here]](hover=Click to return to the details page and continue processing related answers. run_command=/votepass manage %(id))&0 to return to the request details page."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import cc.carm.lib.configuration.core.ConfigurationRoot;
import cc.carm.lib.mineconfiguration.bukkit.value.ConfiguredMessageList;
import com.artformgames.plugin.votepass.core.conf.TextMessages;
import com.artformgames.plugin.votepass.game.Main;
import com.artformgames.plugin.votepass.game.api.whiteist.WhitelistedUserData;
import com.artformgames.plugin.votepass.game.conf.PluginMessages;
Expand Down Expand Up @@ -40,7 +41,7 @@ public static void open(Player player) {

public static final class CONFIG extends ConfigurationRoot {

public static final ConfiguredMessageList<BaseComponent[]> ENABLED = PluginMessages.list()
public static final ConfiguredMessageList<BaseComponent[]> ENABLED = TextMessages.list()
.defaults(
"&8Your current status is",
"&e&labstaining all vote rights&8.",
Expand All @@ -50,7 +51,7 @@ public static final class CONFIG extends ConfigurationRoot {
" "
).build();

public static final ConfiguredMessageList<BaseComponent[]> DISABLED = PluginMessages.list()
public static final ConfiguredMessageList<BaseComponent[]> DISABLED = TextMessages.list()
.defaults(
"&8Your current status is",
"&a&lParticipating in voting&8.",
Expand All @@ -59,7 +60,7 @@ public static final class CONFIG extends ConfigurationRoot {
" ",
" "
).build();
public static final ConfiguredMessageList<BaseComponent[]> TOGGLE = PluginMessages.list()
public static final ConfiguredMessageList<BaseComponent[]> TOGGLE = TextMessages.list()
.defaults(
"You can choose whether to automatically waive all future requests.",
" ",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import cc.carm.lib.easyplugin.gui.GUIItem;
import cc.carm.lib.easyplugin.gui.GUIType;
import cc.carm.lib.easyplugin.gui.paged.AutoPagedGUI;
import cc.carm.lib.mineconfiguration.bukkit.value.item.ConfiguredItem;
import cc.carm.lib.mineconfiguration.bukkit.value.ConfiguredMessage;
import cc.carm.lib.mineconfiguration.bukkit.value.ConfiguredMessageList;
import cc.carm.lib.mineconfiguration.bukkit.value.item.ConfiguredItem;
import com.artformgames.plugin.votepass.api.data.request.RequestAnswer;
import com.artformgames.plugin.votepass.api.data.request.RequestInformation;
import com.artformgames.plugin.votepass.api.data.vote.VoteDecision;
import com.artformgames.plugin.votepass.core.conf.TextMessages;
import com.artformgames.plugin.votepass.game.Main;
import com.artformgames.plugin.votepass.game.api.vote.PendingVote;
import com.artformgames.plugin.votepass.game.conf.PluginMessages;
Expand Down Expand Up @@ -209,7 +210,7 @@ public static final class ITEMS extends ConfigurationRoot {

public static final class BOOK extends ConfigurationRoot {

public static final ConfiguredMessageList<BaseComponent[]> RETURN = PluginMessages.list()
public static final ConfiguredMessageList<BaseComponent[]> RETURN = TextMessages.list()
.defaults(
"&0All answers have been displayed.",
"[&2&l[Click here]](hover=Click to return to the details page and continue processing related answers. run_command=/votepass handle %(id))&0 to return to the request details page."
Expand Down

0 comments on commit 5ff37b6

Please sign in to comment.