mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-26 02:17:42 +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
@ -127,5 +127,12 @@ public interface MCAccess {
|
||||
* @param i
|
||||
*/
|
||||
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);
|
||||
|
||||
}
|
||||
|
@ -166,5 +166,11 @@ public class MCAccessBukkit implements MCAccess, BlockPropertiesSetup{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getKeepAliveTime(final Player player) {
|
||||
// TODO: Implement if possible.
|
||||
return Long.MIN_VALUE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -153,5 +153,11 @@ public class MCAccessCB2511 implements MCAccess {
|
||||
mcPlayer.deathTicks = deathTicks;
|
||||
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