11.6
- The option 'Plugin.UpdateCheck.OnJoin' activates / deactivates the UpdateCheck on join of all T2Code plugins using the T2CodeLib from now on - minor code changes
This commit is contained in:
@@ -9,6 +9,7 @@ public class SelectLibConfig {
|
||||
|
||||
|
||||
public static Boolean UpdateCheckOnJoin;
|
||||
public static Boolean t2cTestDevelopment;
|
||||
public static Integer UpdateCheckTimeInterval;
|
||||
public static Boolean Debug;
|
||||
public static String language;
|
||||
@@ -19,6 +20,7 @@ public class SelectLibConfig {
|
||||
YamlConfiguration yamlConfiguration = YamlConfiguration.loadConfiguration(config);
|
||||
|
||||
UpdateCheckOnJoin = yamlConfiguration.getBoolean("Plugin.UpdateCheck.OnJoin");
|
||||
t2cTestDevelopment = yamlConfiguration.getBoolean("t2cTestDevelopment");
|
||||
UpdateCheckTimeInterval = yamlConfiguration.getInt("Plugin.UpdateCheck.TimeInterval");
|
||||
Debug = yamlConfiguration.getBoolean("Plugin.Debug");
|
||||
language = yamlConfiguration.getString("Plugin.language");
|
||||
|
@@ -15,8 +15,8 @@ public class SelectLibMsg {
|
||||
|
||||
public static String selectMSG;
|
||||
|
||||
public static String VaultNotSetUp;
|
||||
public static String SoundNotFound;
|
||||
public static String vaultNotSetUp;
|
||||
public static String soundNotFound;
|
||||
|
||||
public static void onSelect(String Prefix) {
|
||||
|
||||
@@ -38,8 +38,8 @@ public class SelectLibMsg {
|
||||
} else selectMSG = SelectLibConfig.language;
|
||||
YamlConfiguration yamlConfiguration_msg = YamlConfiguration.loadConfiguration(msg);
|
||||
|
||||
VaultNotSetUp = Replace.replace(prefix, yamlConfiguration_msg.getString("Plugin.VaultNotSetUp"));
|
||||
SoundNotFound = Replace.replace(prefix, yamlConfiguration_msg.getString("Plugin.SoundNotFound"));
|
||||
vaultNotSetUp = Replace.replace(prefix, yamlConfiguration_msg.getString("Plugin.VaultNotSetUp"));
|
||||
soundNotFound = Replace.replace(prefix, yamlConfiguration_msg.getString("Plugin.SoundNotFound"));
|
||||
|
||||
send.console(Prefix + " §2Language successfully selected to: §6" + selectMSG + " §7- §e" + (System.currentTimeMillis() - long_.longValue()) + "ms");
|
||||
}
|
||||
|
Reference in New Issue
Block a user