[WorldGuard] Spawning inside ground due to lag.

Discussion in 'Performance Tweaking' started by MinecraftAdmin, Jul 18, 2013.

  1. #1 MinecraftAdmin, Jul 18, 2013
    Last edited: Jul 18, 2013
  2. Nevermind. Its latency from my ddos proxy.
    Correction: It wasn't the proxy.
    So, its still an issue. :(
     
    #2 MinecraftAdmin, Jul 18, 2013
    Last edited: Jul 18, 2013
  3. joehot200

    Supporter

    Code (Text):

    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent event){
    Player p = event.getPlayer();
    p.teleport(p.getLocation().add(0, 5, 0));
    }
     
     
  4. Not too familiar with java, but it seems your code will spawn the player 5 blocks above the ground on login?
     
  5. Puremin0rez

    Moderator

    I actually have WorldGuard setup to teleport players to the top of a block if they take suffocation damage to work around this sort of thing. People have done neat things like making elevators via this method.

    Adding a few blocks to height when a player logs in sounds good in theory, but I can already imagine people relogging over and over to effectively height hack. Then again, it might not really matter to you unless you're a minigame server or something.