GhostFix

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

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;
	}
	

}

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    59154
  • Created
    Jun 14, 2013
  • Last Released File
    Jun 14, 2013
  • Total Downloads
    1,240
  • License

Categories

Members

Recent Files

Bukkit