diff --git a/src/main/java/net/slqmy/template_paper_plugin/language/LanguageManager.java b/src/main/java/net/slqmy/template_paper_plugin/language/LanguageManager.java index b287d86f..afc5690a 100644 --- a/src/main/java/net/slqmy/template_paper_plugin/language/LanguageManager.java +++ b/src/main/java/net/slqmy/template_paper_plugin/language/LanguageManager.java @@ -69,6 +69,16 @@ public LanguageManager(TemplatePaperPlugin plugin) { } } + public Language getLanguageByName(String name) { + for (Language language : Language.values()) { + if (getLanguageData(language).getName().equals(name)) { + return language; + } + } + + return null; + } + public LanguageData getLanguageData(Language language) { return languages.get(language); }