Skip to content

Commit

Permalink
feat: transition build world to ddefault world
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbker committed Nov 27, 2023
1 parent ed1e295 commit 6445d9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/gg/flyte/event/ChristmasEvent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ChristmasEvent : JavaPlugin() {
worlds()
INSTANCE = this
SERVER = server
WORLD = Bukkit.getWorld("build")!!
WORLD = Bukkit.getWorld("world")!!
LOBBY_SPAWN = MapLocation( 559.5, 105.5, 554.5, 170F, -5F)

twilight(this)
Expand Down Expand Up @@ -64,7 +64,6 @@ class ChristmasEvent : JavaPlugin() {
}

private fun worlds() {
Bukkit.createWorld(WorldCreator("build"))
Bukkit.createWorld(WorldCreator("tree"))
}

Expand Down
9 changes: 5 additions & 4 deletions src/main/kotlin/gg/flyte/event/visual/camera/Camera.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package gg.flyte.event.visual.camera

import gg.flyte.event.ChristmasEvent
import gg.flyte.event.util.MapLocation
import org.bukkit.Bukkit
import org.bukkit.GameMode
import org.bukkit.Location
Expand All @@ -18,10 +19,10 @@ object Camera {
private const val CAMERA_ACCOUNT_UUID = "850d5af5-f602-411e-b3de-a056d6da2e9d"

enum class Location(val value: org.bukkit.Location) {
SPAWN(Location(Bukkit.getWorld("build"), 559.5, 130.0, 554.5, 180F, 90F)),
ARENA(Location(Bukkit.getWorld("build"), 615.5, 180.0, 800.5, 0F, 90F)),
KOTH(Location(Bukkit.getWorld("build"), 833.5, 180.0, 615.5, 90F, 90F)),
FOREST(Location(Bukkit.getWorld("build"), 181.5, 200.0, 300.5, -135F, 90F)),
SPAWN(MapLocation(559.5, 130.0, 554.5, 180F, 90F)),
ARENA(MapLocation(615.5, 180.0, 800.5, 0F, 90F)),
KOTH(MapLocation(833.5, 180.0, 615.5, 90F, 90F)),
FOREST(MapLocation(181.5, 200.0, 300.5, -135F, 90F)),
}

object CameraCommand {
Expand Down

0 comments on commit 6445d9f

Please sign in to comment.