mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 13:26:56 +00:00
added combat tracker
This commit is contained in:
@@ -21,6 +21,12 @@ public class ConfigCache {
|
||||
@Getter private final double lava_and_fire_stopper_radius;
|
||||
@Getter private final boolean channeling_enchant_disabled;
|
||||
@Getter private final long cache_time;
|
||||
@Getter private final long combat_time;
|
||||
@Getter private final boolean punish_for_combat_logout;
|
||||
@Getter private final boolean punish_for_combat_logout_announce;
|
||||
@Getter private final String punish_for_combat_logout_message;
|
||||
@Getter private final String entering_combat;
|
||||
@Getter private final String leaving_combat;
|
||||
|
||||
public ConfigCache() {
|
||||
|
||||
@@ -34,6 +40,11 @@ public class ConfigCache {
|
||||
|
||||
this.channeling_enchant_disabled = config.getBoolean("settings.channeling_enchant_disabled", true);
|
||||
|
||||
this.combat_time = config.getLong("settings.combat_time", 25L);
|
||||
this.punish_for_combat_logout = config.getBoolean("settings.punish_for_combat_logout.enabled", true);
|
||||
this.punish_for_combat_logout_announce = config.getBoolean("settings.punish_for_combat_logout.announce", true);
|
||||
this.punish_for_combat_logout_message = config.getString("settings.punish_for_combat_logout.message", "&f%player% logged out while in combat. What a loser.");
|
||||
|
||||
this.cache_time = config.getLong("settings.cache_time", 30L);
|
||||
|
||||
// Messages
|
||||
@@ -46,6 +57,9 @@ public class ConfigCache {
|
||||
this.no_permission = config.getString("messages.no_permission", "&cYou don't have permission to use that.");
|
||||
this.no_such_command = config.getString("messages.no_such_command", "&cNo such command.");
|
||||
this.pvp_enabled_other = config.getString("messages.pvp_enabled_others", "&cYou've enabled %player%'s PvP.");
|
||||
this.pvp_disabled_other =config.getString("messages.pvp_disabled_others", "&cYou've disabled %player%'s PvP.");
|
||||
this.pvp_disabled_other = config.getString("messages.pvp_disabled_others", "&cYou've disabled %player%'s PvP.");
|
||||
this.entering_combat = config.getString("messages.entering_combat", "&cEntering combat");
|
||||
this.leaving_combat = config.getString("messages.leaving_combat", "&cLeaving combat");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user