Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
Fixed Teleporting to players and added missing Spigot patches in
Browse files Browse the repository at this point in the history
NetHandlerPlayerServer
  • Loading branch information
Hexeption committed Aug 19, 2019
1 parent 9d033c6 commit be1ba27
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 64 deletions.
4 changes: 2 additions & 2 deletions patches/net/minecraft/command/CommandTP.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
- throw new CommandException("commands.tp.notSameDimension", new Object[0]);
+ // CraftBukkit Start
+ // Use Bukkit teleport method in all cases. It has cross dimensional handling, events
+ if (entity.getBukkitEntity().teleport(entity.getBukkitEntity(), org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.COMMAND)) {
+ notifyCommandListener(sender, (ICommand) this, "commands.tp.success", new Object[] { entity.getName(), entity.getName()});
+ if (entity.getBukkitEntity().teleport(entity1.getBukkitEntity(), org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.COMMAND)) {
+ notifyCommandListener(sender, (ICommand) this, "commands.tp.success", new Object[] { entity.getName(), entity1.getName()});
+ // CraftBukkit End
}
- else
Expand Down
Loading

0 comments on commit be1ba27

Please sign in to comment.