Skip to content

Commit

Permalink
WarpDelete && WarpTeleport Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ImperaZim committed Feb 12, 2024
1 parent 53d7786 commit d42f3fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/WarpsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private function getSubmitCallback(Player $player, Button $button): ?FormMaker {
$manager->isWorldLoaded($position->getWorld()->getDisplayName()) && $manager->loadWorld($position->getWorld()->getDisplayName(), true);

if ($player->teleport($position)) {
$ev = new WarpTeleportEvent(new Warp($name), $player);
$ev = new WarpTeleportEvent($warp, $player);
$ev->call();
}
} catch (\Throwable $e) {
Expand Down
1 change: 1 addition & 0 deletions src/commands/arguments/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace commands\arguments;

use warp\Warp;
use warp\WarpManager;
use events\WarpDeleteEvent;
use pocketmine\player\Player;
Expand Down

0 comments on commit d42f3fe

Please sign in to comment.