Skip to content

Commit

Permalink
Support for all UTF-8 Characters. Languages like Chinese are supporte…
Browse files Browse the repository at this point in the history
…d now
  • Loading branch information
TheDutchMC committed Oct 7, 2020
1 parent 775e81e commit 0414d97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pluginVersion = 2.1.2
pluginVersion = 2.1.3
pluginGroup = nl.thedutchmc.harotorch
pluginName = HaroTorch
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

package nl.thedutchmc.harotorch.commands.torchSubCmds;

import org.bukkit.ChatColor;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/nl/thedutchmc/harotorch/lang/LangHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
Expand Down Expand Up @@ -63,7 +65,7 @@ public void load() {

try {
props = new Properties();
props.load(new FileInputStream(configFile));
props.load(new InputStreamReader(new FileInputStream(configFile), Charset.forName("UTF-8")));

readLang(HaroTorch.getConfigHandler().activeLang);
} catch(FileNotFoundException e) {
Expand Down

0 comments on commit 0414d97

Please sign in to comment.