Skip to content

Commit

Permalink
refactor: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Mar 16, 2024
1 parent 324926f commit 8949c38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/kotlin/com/mineinabyss/blocky/BlockyPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ class BlockyPlugin : JavaPlugin() {
blocky.config.run {
if (noteBlocks.isEnabled) {
if (!GlobalConfiguration.get().blockUpdates.disableNoteblockUpdates) {
logError("Due to the disable-noteblock-updates being disabled in paper-global.yml, NoteBlock-BlockTypes have been disabled...")
logError("This setting is required for Blocky to function properly.")
blocky.logger.e("Due to the disable-noteblock-updates being disabled in paper-global.yml, NoteBlock-BlockTypes have been disabled...")
blocky.logger.e("This setting is required for Blocky to function properly.")
} else listeners(BlockyNoteBlockListener())
}
if (tripWires.isEnabled) {
if (!GlobalConfiguration.get().blockUpdates.disableTripwireUpdates) {
logError("Due to the disable-tripwire-updates being disabled in paper-global.yml, Wire-BlockTypes have been disabled...")
logError("This setting is required for Blocky to function properly.")
blocky.logger.e("Due to the disable-tripwire-updates being disabled in paper-global.yml, Wire-BlockTypes have been disabled...")
blocky.logger.e("This setting is required for Blocky to function properly.")
} else listeners(BlockyWireListener())

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class BlockyFurnitureListener : Listener {

init {
if (Plugins.isEnabled("ModelEngine")) {
logSuccess("ModelEngine detected, enabling ModelEngine-Furniture-Interaction Listener!")
blocky.logger.iSuccess("ModelEngine detected, enabling ModelEngine-Furniture-Interaction Listener!")
Bukkit.getPluginManager().registerEvents(object : Listener {
@EventHandler
fun BaseEntityInteractEvent.onModelEngineInteract() {
Expand Down

0 comments on commit 8949c38

Please sign in to comment.