This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
generated from Project-Cepi/ExampleExtension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
package world.cepi.npc | ||
|
||
import net.minestom.server.extensions.Extension | ||
import world.cepi.kstom.util.log | ||
import world.cepi.kstom.util.node | ||
import world.cepi.npc.modification.SkinCommand | ||
|
||
class NPCEditor : Extension() { | ||
|
||
override fun initialize() { | ||
override fun initialize(): LoadStatus { | ||
|
||
NPCCommand.register() | ||
SkinCommand.register() | ||
|
||
eventNode.addChild(NPC.npcNode) | ||
node.addChild(NPC.npcNode) | ||
|
||
logger.info("[NPCEditor] has been enabled!") | ||
log.info("[NPCEditor] has been enabled!") | ||
|
||
return LoadStatus.SUCCESS | ||
} | ||
|
||
override fun terminate() { | ||
|
||
NPCCommand.unregister() | ||
SkinCommand.unregister() | ||
|
||
logger.info("[NPCEditor] has been disabled!") | ||
log.info("[NPCEditor] has been disabled!") | ||
} | ||
|
||
} |
File renamed without changes.