mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 13:26:56 +00:00
login protection option and some upgrades
This commit is contained in:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user