Ready for release

Former-commit-id: d2b1fc610ef84ac35a71a73e2cd16832ae666ad8 [formerly 31ffb34640b8e61ce46826ae1a4ba97d025194f8]
Former-commit-id: 982a3d210d1904422e214a1c205cb2180d7435fc
This commit is contained in:
Ghost_chu committed 2018-11-16 20:25:05 +08:00
1 parent f22ea61e75
commit 971b04ab7a
1 file changed
+4 -2
@@ -44,7 +44,7 @@ public class MsgUtil {
/**
* Loads all the messages from messages.yml
*/
public static void loadCfgMessages() {
public static void loadCfgMessages(Boolean... reload) {
// Load messages.yml
File messageFile = new File(plugin.getDataFolder(), "messages.yml");
if (!messageFile.exists()) {
@@ -69,7 +69,8 @@ public class MsgUtil {
if(messages.getInt("language-version")==0) {
messages.set("language-version", 1);
}
updateMessages(messages.getInt("language-version"));
if(reload.length==0)
updateMessages(messages.getInt("language-version"));
//Print language copyright infomation
if(!Inited) {
@@ -122,6 +123,7 @@ public class MsgUtil {
messages.save(new File(plugin.getDataFolder(), "messages.yml"));
} catch (IOException e) {
}
loadCfgMessages(true);
}
public static void sendControlPanelInfo(CommandSender sender, Shop shop) {