mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 05:16:55 +00:00
semi-major api changes, javadocs
This commit is contained in:
@@ -55,7 +55,7 @@ public class PlacoholderApiHook extends PlaceholderExpansion {
|
||||
if (!player.isOnline()) {
|
||||
return legacyComponentSerializer.serialize(PluginMessages.parseMessage(plugin.getConfigCache().getPlaceholder_not_in_combat()));
|
||||
}
|
||||
long seconds = plugin.getPlayerManager().getPlayer(uuid).getCombattime() - Instant.now().getEpochSecond();
|
||||
long seconds = plugin.getPlayerManager().getPlayer(uuid).getCombatTime();
|
||||
if (seconds > 0) {
|
||||
String msg = plugin.getConfigCache().getPlaceholder_combat_time();
|
||||
msg = msg.replaceAll("%time%", String.valueOf(seconds));
|
||||
|
||||
Reference in New Issue
Block a user