File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/core Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.mairwunnx.projectessentials.core
22
33import com.mairwunnx.projectessentials.core.api.v1.commands.CommandAPI
44import com.mairwunnx.projectessentials.core.api.v1.commands.CommandProcessor
5+ import com.mairwunnx.projectessentials.core.api.v1.commands.back.BackLocationAPI
56import com.mairwunnx.projectessentials.core.api.v1.configuration.ConfigurationProcessor
67import com.mairwunnx.projectessentials.core.api.v1.events.ModuleEventAPI.subscribeOn
78import com.mairwunnx.projectessentials.core.api.v1.events.forge.FMLCommonSetupEventData
@@ -132,6 +133,11 @@ For support project you can also put an star on the Project Essentials repositor
132133 ProcessorAPI .getProcessorByName(" command" ).postProcess()
133134 }
134135
136+ @SubscribeEvent
137+ fun onPlayerLeave (event : PlayerEvent .PlayerLoggedOutEvent ) {
138+ BackLocationAPI .revoke(event.player as ServerPlayerEntity )
139+ }
140+
135141 @SubscribeEvent
136142 fun onPlayerJoin (event : PlayerEvent .PlayerLoggedInEvent ) {
137143 if (! dudeFuckedOff) {
You can’t perform that action at this time.
0 commit comments