Adjust teleportBuilder method

This commit is contained in:
William278 committed 2023-03-24 13:25:16 +00:00
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);
} }