Skip to content

Commit

Permalink
Use hard-coded labels for plugin names
Browse files Browse the repository at this point in the history
  • Loading branch information
carlodrift committed Aug 31, 2024
1 parent 5958861 commit 16046ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ public LinkSynchronizationSelector(Skoice plugin) {

@Override
public SelectMenu get() {
List<SelectOption> options = new ArrayList<>(Arrays.asList(SelectOption.of(super.plugin.getBot().getLang().getMessage("menu.link-synchronization.select-menu.discordsrv.label"),
List<SelectOption> options = new ArrayList<>(Arrays.asList(SelectOption.of("DiscordSRV",
ConfigField.DISCORDSRV_SYNCHRONIZATION.toString())
.withDescription(super.plugin.getBot().getLang().getMessage("select-option.default.description"))
.withEmoji(MenuEmoji.ELECTRIC_PLUG.get()),
SelectOption.of(super.plugin.getBot().getLang().getMessage("menu.link-synchronization.select-menu.essentialsx.label"),
SelectOption.of("EssentialsX",
ConfigField.ESSENTIALSX_SYNCHRONIZATION.toString())
.withDescription(super.plugin.getBot().getLang().getMessage("select-option.default.description"))
.withEmoji(MenuEmoji.ELECTRIC_PLUG.get())));
Expand Down
4 changes: 0 additions & 4 deletions src/main/resources/discord/lang/EN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ menu:
description: "Toggle the synchronization of external plugins with Skoice. Players who have linked their accounts using one of the selected plugins are synchronized in real time between Skoice and that plugin. Updating this option requires you to restart your Minecraft server for it to take effect."
select-menu:
placeholder: "Please select the desired plugins."
discordsrv:
label: "DiscordSRV"
essentialsx:
label: "EssentialsX"
release-channel:
title: "Release Channel"
description: "Select the version of Skoice you want to use."
Expand Down

0 comments on commit 16046ae

Please sign in to comment.