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