mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancydialogs: Add quick_actions_dialog_id config option
This commit is contained in:
@@ -10,6 +10,7 @@ public class FancyDialogsConfig {
|
|||||||
|
|
||||||
private String language;
|
private String language;
|
||||||
private String welcomeDialogID;
|
private String welcomeDialogID;
|
||||||
|
private String quickActionsDialogID;
|
||||||
|
|
||||||
public void load() {
|
public void load() {
|
||||||
FancyDialogsPlugin.get().reloadConfig();
|
FancyDialogsPlugin.get().reloadConfig();
|
||||||
@@ -20,13 +21,20 @@ public class FancyDialogsConfig {
|
|||||||
|
|
||||||
welcomeDialogID = (String) ConfigHelper.getOrDefault(config, "welcome_dialog_id", "welcome-dialog");
|
welcomeDialogID = (String) ConfigHelper.getOrDefault(config, "welcome_dialog_id", "welcome-dialog");
|
||||||
config.setInlineComments("welcome_dialog_id", List.of("The ID of the dialog which will be shown to the player when they join the server for the first time."));
|
config.setInlineComments("welcome_dialog_id", List.of("The ID of the dialog which will be shown to the player when they join the server for the first time."));
|
||||||
|
|
||||||
|
quickActionsDialogID = (String) ConfigHelper.getOrDefault(config, "quick_actions_dialog_id", "quick-actions-dialog");
|
||||||
|
config.setInlineComments("quick_actions_dialog_id", List.of("The ID of the dialog which will be shown to the player when they click on the quick actions key ('G' by default)."));
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLanguage() {
|
||||||
|
return language;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getWelcomeDialogID() {
|
public String getWelcomeDialogID() {
|
||||||
return welcomeDialogID;
|
return welcomeDialogID;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getLanguage() {
|
public String getQuickActionsDialogID() {
|
||||||
return language;
|
return quickActionsDialogID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user