login protection option and some upgrades

This commit is contained in:
YouHaveTrouble
2021-02-25 02:50:18 +01:00
parent 0a984a5b4a
commit 7655b2804e
12 changed files with 113 additions and 34 deletions
@@ -29,6 +29,7 @@ public class ConfigCache {
@Getter private final String leaving_combat;
@Getter final String cant_do_that_during_combat;
@Getter final boolean only_owner_can_interact_with_pet;
@Getter final long login_protection_time;
public ConfigCache() {
@@ -49,6 +50,8 @@ public class ConfigCache {
this.only_owner_can_interact_with_pet = config.getBoolean("settings.only_owner_can_interact_with_pet", false);
this.cache_time = config.getLong("settings.cache_time", 30L);
this.login_protection_time = config.getLong("settings.login_protection_time", 0);
// Messages
this.pvp_enabled = config.getString("messages.pvp_enabled", "&cYou enabled PvP!");
this.pvp_disabled = config.getString("messages.pvp_disabled", "&cYou disabled PvP!");