Simple doublejump
#2
I'm afraid any kind of a doublejump plugin would be a hack at best. Currently, there's no way for Cuberite plugins to read the packets sent by the client directly, so there's no way to detect the second press of the jump key (even if the client send it at all (?)).

The IsSprinting flag is taken directly from the client, so whatever the client says, the flag mirrors.

As for your code, the OnTick() hook doesn't get any Player parameter, it gets a World parameter, so you'll need to iterate over all players in the world. Also note that most if not all functions in Cuberite API need to be called using the colon convention - Player:IsOnGround() etc.
Reply
Thanks given by:


Messages In This Thread
Simple doublejump - by nrgjrteherh435 - 05-19-2017, 10:47 AM
RE: Simple doublejump - by xoft - 05-19-2017, 04:13 PM
RE: Simple doublejump - by NiLSPACE - 05-19-2017, 04:50 PM
RE: Simple doublejump - by Seadragon91 - 05-19-2017, 05:09 PM
RE: Simple doublejump - by NiLSPACE - 05-19-2017, 05:39 PM



Users browsing this thread: 1 Guest(s)