mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Adjust teleportBuilder method
This commit is contained in:
1 parent
9fd3a0988d
commit
173178637e
1 file changed
+17
-6
@@ -528,15 +528,26 @@ public abstract class BaseHuskHomesAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a {@link TeleportBuilder} to construct and dispatch a (timed) teleport
|
* Get a {@link TeleportBuilder} to construct and execute a (timed) teleport
|
||||||
*
|
*
|
||||||
* @param onlineUser The {@link OnlineUser} to teleport
|
* @param teleporter The {@link OnlineUser} to teleport
|
||||||
* @return A {@link TeleportBuilder} to construct and dispatch a (timed) teleport
|
* @return A {@link TeleportBuilder} to construct and execute a (timed) teleport
|
||||||
* @since 3.1
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
public final TeleportBuilder teleportBuilder(@NotNull OnlineUser onlineUser) {
|
public final TeleportBuilder teleportBuilder(@NotNull OnlineUser teleporter) {
|
||||||
return Teleport.builder(plugin).teleporter(onlineUser);
|
return teleportBuilder().teleporter(teleporter);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a {@link TeleportBuilder} to construct and execute a (timed) teleport
|
||||||
|
*
|
||||||
|
* @return A {@link TeleportBuilder} to construct and execute a (timed) teleport
|
||||||
|
* @since 4.0
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
public final TeleportBuilder teleportBuilder() {
|
||||||
|
return Teleport.builder(plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user