Changed afk notify message for staff to display full afk time
This commit is contained in:
parent
7b6a045127
commit
dd80712fee
|
|
@ -71,7 +71,7 @@ public class MessageTimer extends BukkitRunnable {
|
|||
AutoJoinTracker.getInstance().addKick(player.getUniqueId(), new Date().getTime());
|
||||
TagResolver templates = TagResolver.resolver(
|
||||
Placeholder.unparsed("player", player.getName()),
|
||||
Placeholder.unparsed("afk_time", "" + afkPlayer.getafkTime())
|
||||
Placeholder.unparsed("afk_time", "" + (int) Math.floor((System.currentTimeMillis() - plugin.getPlayer(player).getstandingTime()) / 60f / 1000))
|
||||
);
|
||||
Component message = MiniMessage.miniMessage().deserialize(Messages.AFKICKSTAFFMESSAGE.getMessage(), templates);
|
||||
Bukkit.broadcast(message, "afkdetector.notify");
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public enum Messages {
|
|||
AFKCHECKTITLE("afkcheck-title", "AFK CHECK"),
|
||||
AFKCHECKSUBTITLE("afkcheck-subtitle", "Please respond to the dm from staff!"),
|
||||
AFKCHECKMESSAGE("afkcheck-message", "Hey, since you're near a farm and not moving. I'm making sure you aren't afk. Please respond to me if you're not AFK."),
|
||||
AFKICKSTAFFMESSAGE("afkkick-staff-messsge", "<gold><player> got afk kicked after being marked as afk for <afk_time> minutes."),
|
||||
AFKICKSTAFFMESSAGE("afkkick-staff-messsge", "<gold><player> got afk kicked after being afk for <afk_time> minutes."),
|
||||
SUSPICIOUSKICKCOUNT("afkkick-suspicious-message", "<gold><player> has had <count> suspicious AFK kicks since last reboot.");
|
||||
|
||||
public final String key;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user