mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 11:10:05 +01:00
Add comment.
This commit is contained in:
parent
4e6c2bc8c6
commit
9ddb91f7fd
@ -1108,6 +1108,8 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
|||||||
else info = parkedInfo.remove(parkedInfo.size() - 1);
|
else info = parkedInfo.remove(parkedInfo.size() - 1);
|
||||||
final List<String> rem = new ArrayList<String>(hoverTicks.size()); // Pessimistic.
|
final List<String> rem = new ArrayList<String>(hoverTicks.size()); // Pessimistic.
|
||||||
for (final String playerName : hoverTicks){
|
for (final String playerName : hoverTicks){
|
||||||
|
// TODO: put players into the set (+- one tick would not matter ?)
|
||||||
|
// TODO: might add an online flag to data !
|
||||||
final Player player = server.getPlayerExact(playerName);
|
final Player player = server.getPlayerExact(playerName);
|
||||||
if (player == null || !player.isOnline()){
|
if (player == null || !player.isOnline()){
|
||||||
rem.add(playerName);
|
rem.add(playerName);
|
||||||
|
Loading…
Reference in New Issue
Block a user