Skip to content

Commit

Permalink
Fixed disabling neutrality preventing the plugin from enabling
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccoystephenson committed Jan 19, 2024
1 parent e16286b commit aadbd25
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ class MedievalFactions : JavaPlugin() {

val gson = Gson()
val playerRepository: MfPlayerRepository = JooqMfPlayerRepository(this, dsl)
val dynmapService = if (server.pluginManager.getPlugin("dynmap") != null && config.getBoolean("dynmap.enableDynmapIntegration")) {
MfDynmapService(this)
} else {
null
}
val factionRepository: MfFactionRepository = JooqMfFactionRepository(this, dsl, gson)
val lawRepository: MfLawRepository = JooqMfLawRepository(dsl)
val factionRelationshipRepository: MfFactionRelationshipRepository = JooqMfFactionRelationshipRepository(dsl)
Expand All @@ -208,11 +213,6 @@ class MedievalFactions : JavaPlugin() {
val duelService = MfDuelService(this, duelRepository, duelInviteRepository)
val potionService = MfPotionService(this)
val teleportService = MfTeleportService(this)
val dynmapService = if (server.pluginManager.getPlugin("dynmap") != null && config.getBoolean("dynmap.enableDynmapIntegration")) {
MfDynmapService(this)
} else {
null
}

services = Services(
playerService,
Expand Down

0 comments on commit aadbd25

Please sign in to comment.