Skip to content

Commit

Permalink
Migrate to new FileUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
lewmilburn committed May 30, 2024
1 parent ef180a8 commit 6f58221
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/net/lewmc/essence/utils/MessageUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ public void SendTo(CommandSender cs, String group, String message, String extra1

private String GetMessage(String code, String group) {
String language = this.plugin.getConfig().getString("language");
DataUtil data = new DataUtil(this.plugin, this);
FileUtil data = new FileUtil(this.plugin);
data.load("language/"+language+".yml");
ConfigurationSection msg = data.getSection(group);
if (msg != null) {
String toSend = String.valueOf(msg.get(code));

if (data.get(group) != null) {
String toSend = data.getString("group."+code);
data.close();
return toSend;
} else {
Expand Down

0 comments on commit 6f58221

Please sign in to comment.