added 'ping'

This commit is contained in:
gnembon committed 2020-04-01 13:09:02 -03:00
1 parent 652ca7d6a0
commit c2dfaca1b8
3 files changed
+17

No files matched your search

@@ -331,6 +331,15 @@ public class EntityValue extends Value
return Value.NULL;
});
put("ping", (e, a) -> {
if (e instanceof ServerPlayerEntity)
{
ServerPlayerEntity spe = (ServerPlayerEntity) e;
return new NumericValue(spe.pingMilliseconds);
}
return Value.NULL;
});
//spectating_entity
// isGlowing
put("effect", (e, a) ->