Teleportation Moved too quickly

Discussion in 'Plugin Development' started by Schlurp, Apr 27, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Schlurp

    Hello how can i disable or remove the moved too quickly message in the console?

    Example code:

    Code:
                                                    new BukkitRunnable() {
                                                        int x = 0;
    
                                                        @Override
                                                        public void run() {
                                                            if (x <= 20) {
                                                                x++;
                                                                loc.add(0.0D, 0.0D, 0.05D).add(0.0D, 0.025D, 0.0D);
                                                                p.teleport(loc, TeleportCause.PLUGIN);
                                                            } else if (x <= 40) {
                                                                x++;
                                                                loc.add(0.0D, 0.0D, 0.05D).subtract(0.0D,0.025D,0.0D);
                                                                p.teleport(loc, TeleportCause.PLUGIN);
                                                            } else {
                                                                p.setWalkSpeed(Main.DefaultWalkSpeed);
                                                                this.cancel();
                                                            }
                                                        }
                                                    }.runTaskTimer(Main.getInstance(), 0, 1);
     
  2. Offline

    Zombie_Striker

    @Schlurp
    From EvilSeph:
    And from TnT:
    So, although you can do it (something the bukkit forums will not help you with), it would be a terrible idea.
     
Thread Status:
Not open for further replies.

Share This Page