File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/permissions/impl Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -84,17 +84,6 @@ internal class ModuleObject : IModule {
8484 )
8585 }
8686
87- ModuleEventAPI .subscribeOn<ProcessorEventData >(
88- ModuleCoreEventType .OnModuleClassProcessed
89- ) { _ ->
90- ModList .get().mods.find { it.modId == " worldedit" }?.let {
91- if (permissionsSettings.configuration.replaceWorldEditPermissionsHandler) {
92- logger.info(" WorldEdit mod found and able to replacing permissions handler" )
93- EVENT_BUS .register(WorldEditEventHandler ::class .java)
94- }
95- }
96- }
97-
9887 /*
9988 Remove permissions command if `enablePermissionsCommand` is false.
10089 It need to do in `OnProcessorProcessing` event.
@@ -112,7 +101,14 @@ internal class ModuleObject : IModule {
112101 }
113102 }
114103
115- override fun init () = Unit
104+ override fun init () {
105+ ModList .get().mods.find { it.modId == " worldedit" }?.let {
106+ if (permissionsSettings.configuration.replaceWorldEditPermissionsHandler) {
107+ logger.info(" WorldEdit mod found and able to replacing permissions handler" )
108+ EVENT_BUS .register(WorldEditEventHandler ::class .java)
109+ }
110+ }
111+ }
116112
117113 @SubscribeEvent
118114 fun onBlockBreakEvent (event : BlockEvent .BreakEvent ) {
You can’t perform that action at this time.
0 commit comments