feat: folia対応
This commit is contained in:
parent
db58c15e2e
commit
1dfaf8494c
|
|
@ -32,6 +32,7 @@ paper {
|
|||
description = "Teleports players to spawn on join unless they have ignore permission"
|
||||
version = getVersion().toString()
|
||||
apiVersion = "1.21"
|
||||
foliaSupported = true
|
||||
authors = listOf("Hare-K02")
|
||||
permissions {
|
||||
register("onjoinspawn.ignore") {
|
||||
|
|
|
|||
|
|
@ -42,6 +42,6 @@ class App : JavaPlugin(), Listener {
|
|||
|
||||
// Teleport player to spawn immediately
|
||||
// This happens before the player is fully loaded into the world
|
||||
player.teleport(spawnLocation)
|
||||
player.teleportAsync(spawnLocation)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user