mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-26 18:37:59 +01:00
Prepare getKeepAliveTime method for MCAccess.
No implementation of it yet. If implemented this will help finding players that do a passive god-mode.
This commit is contained in:
parent
25a3c9663b
commit
aa171f9687
@ -128,4 +128,11 @@ public interface MCAccess {
|
||||
*/
|
||||
public void setDead(Player player, int deathTicks);
|
||||
|
||||
/**
|
||||
* Get timestamp of the keep-alive field (not only updated on keep-alive packets).
|
||||
* @param player The player for which to get the time.
|
||||
* @return Long.MIN_VALUE if not possible.
|
||||
*/
|
||||
public long getKeepAliveTime(Player player);
|
||||
|
||||
}
|
||||
|
@ -167,4 +167,10 @@ public class MCAccessBukkit implements MCAccess, BlockPropertiesSetup{
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getKeepAliveTime(final Player player) {
|
||||
// TODO: Implement if possible.
|
||||
return Long.MIN_VALUE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -154,4 +154,10 @@ public class MCAccessCB2511 implements MCAccess {
|
||||
mcPlayer.dead = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getKeepAliveTime(final Player player) {
|
||||
// TODO: Implement if possible.
|
||||
return Long.MIN_VALUE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -153,4 +153,10 @@ public class MCAccessCB2512 implements MCAccess{
|
||||
mcPlayer.dead = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getKeepAliveTime(final Player player) {
|
||||
// TODO: Implement if possible.
|
||||
return Long.MIN_VALUE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -153,4 +153,10 @@ public class MCAccessCB2545 implements MCAccess{
|
||||
mcPlayer.dead = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getKeepAliveTime(final Player player) {
|
||||
// TODO: Implement if possible.
|
||||
return Long.MIN_VALUE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -154,4 +154,10 @@ public class MCAccessCBDev implements MCAccess{
|
||||
mcPlayer.dead = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getKeepAliveTime(final Player player) {
|
||||
// TODO: Implement if possible.
|
||||
return Long.MIN_VALUE;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user