Skip to content

Commit

Permalink
Updated loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Feb 10, 2022
1 parent 804a0e8 commit ec6d717
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ConsoleLoggers(
return
}

val location = "${event.location.world}: ${event.location.x}, ${event.location.y}, ${event.location.z}"
val location = "${event.location.world?.name}: ${event.location.x}, ${event.location.y}, ${event.location.z}"

plugin.logger.info("&a${event.boss.id}&r was spawned by &a${event.spawner?.name}&r at &a$location")
}
Expand All @@ -35,7 +35,7 @@ class ConsoleLoggers(
}

val loc = event.boss.entity?.location
val location = "${loc?.world}: ${loc?.x}, ${loc?.y}, ${loc?.z}"
val location = "${loc?.world?.name}: ${loc?.x}, ${loc?.y}, ${loc?.z}"

plugin.logger.info("&a${event.boss.boss.id}&r was killed by &a${event.killer?.name}&r at &a$location")
}
Expand All @@ -49,7 +49,7 @@ class ConsoleLoggers(
return
}
val loc = event.boss.entity?.location
val location = "${loc?.world}: ${loc?.x}, ${loc?.y}, ${loc?.z}"
val location = "${loc?.world?.name}: ${loc?.x}, ${loc?.y}, ${loc?.z}"

plugin.logger.info("&a${event.boss.boss.id}&r despawned at &a$location")
}
Expand Down

0 comments on commit ec6d717

Please sign in to comment.