Speed Checks

Discussion in 'Spigot Help' started by FlamingKnight08, Feb 4, 2020.

  1. 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);
    }
     
  2. #2 Twoaster, Feb 4, 2020
    Last edited: Feb 4, 2020
  3. You can disable the alert of moving too fast by setting the multiplier in your config files higher.

    Spigot.yml > moved-too-quickly-multiplier