mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Add additional teleport execution handling
This commit is contained in:
8 files changed
+87
-40
No files matched your search
@@ -65,10 +65,10 @@ public class TpCommand extends Command implements TabProvider {
|
||||
// Execute a teleport
|
||||
private void execute(@NotNull CommandUser executor, @NotNull Teleportable teleportable, @NotNull Target target,
|
||||
@NotNull String[] args) {
|
||||
final TeleportBuilder builder = Teleport.builder(plugin)
|
||||
.teleporter(teleportable)
|
||||
.target(target);
|
||||
try {
|
||||
final TeleportBuilder builder = Teleport.builder(plugin)
|
||||
.teleporter(teleportable)
|
||||
.target(target);
|
||||
if (executor instanceof OnlineUser user) {
|
||||
builder.executor(user);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user