Hello! I am bored so I'm just doing some random things and am having a few problems, first of all, the speed check is bothering me by it saying, "Username is moving too fast!", is there a way I can disable that? This is why: @EventHandler public void onPlayerMoveActoins(PlayerMoveEvent ev) { Player player = ev.getPlayer(); player.setVelocity(player.getVelocity().setX(player.getVelocity().getX()*2)); player.setVelocity(player.getVelocity().setY(player.getVelocity().getY()*2)); player.setVelocity(player.getVelocity().setZ(player.getVelocity().getZ()*2)); } I also tried setting players WalkSpeed though I got a error with that here:https://hastebin.com/qakuxoqemi.cs here was the code I used for that: @EventHandler public void onPlayerDeathEvent(PlayerMoveEvent ev) { Player player = ev.getPlayer(); player.setWalkSpeed(player.getWalkSpeed()*1.1f); }
First of all, all things code/development related should be posted here. https://www.spigotmc.org/forums/spigot-plugin-development.52/ Second, why do you set each vector direction seperate, instead of just multiplying the whole vector by 2? Third, iirc the walks peed can not be set higher than 1.
You can disable the alert of moving too fast by setting the multiplier in your config files higher. Spigot.yml > moved-too-quickly-multiplier