I made a small little speed boost (weaker than the potion effect and without the visual effect) by offering the player Keys.WALK_SPEED a value of 0.136 (boost speed by 36% if I’m not mistaken that the default speed is 0.1)
As the player disconnects I want to reset that, but it seems that this is too late and the speed does not get reset on the next connection.
Now I could reset the speed on the next connection to the server but that only works until the plugin is removed and players are left with modified walk speeds.
Is there any way to reset a keyed value for disconnected players?
Edit running on Minecraft: 1.12
SpongeAPI: 7.0.0-SNAPSHOT-339a5c70
SpongeVanilla: 1.12-7.0.0-BETA-306