promotional bannermobile promotional banner

GhostFix

Abandoned
GhostFix

GhostFix

GhostFix allows you to teleport to yourself. It is a workaround for a minecraft/bukkit bug, that makes players lose position update sync and stand still.

Commands

Teleport to yourself:
/ghostfix

References

Requested by KillerAnt9000 Mentioned by unforgiven5232 and Mavreck (Mav) (latter on external site)

Source

package me.speed.GhostFix;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
import org.bukkit.plugin.java.JavaPlugin;


public class GhostFix extends JavaPlugin{

	public boolean onCommand(CommandSender sender, Command cmd, String label, String args[]) {
		if((cmd.getName().equalsIgnoreCase("GhostFix")) && (sender instanceof Player)) {
			((Player) sender).teleport(((Player) sender).getLocation(), TeleportCause.COMMAND);
		}
		return false;
	}
	

}

The GhostFix Team

profile avatar
  • 10
    Projects
  • 23.5K
    Downloads

More from adventuretcView all