generated from UndefinedCreations/Template
-
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.
feat(events): add StellarCommandRegisterEvent
- Loading branch information
1 parent
78e128f
commit e665990
Showing
3 changed files
with
27 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
api/src/main/kotlin/com/undefined/stellar/data/events/AbstractStellarEvent.kt
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.undefined.stellar.data.events | ||
|
||
import org.bukkit.event.Event | ||
import org.bukkit.event.HandlerList | ||
|
||
abstract class AbstractStellarEvent : Event() { | ||
override fun getHandlers(): HandlerList { | ||
return HANDLERS_LIST | ||
} | ||
|
||
companion object { | ||
private val HANDLERS_LIST = HandlerList() | ||
|
||
@JvmStatic | ||
fun getHandlerList(): HandlerList { | ||
return HANDLERS_LIST | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
api/src/main/kotlin/com/undefined/stellar/data/events/StellarCommandRegisterEvent.kt
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.undefined.stellar.data.events | ||
|
||
import com.undefined.stellar.StellarCommand | ||
|
||
class StellarCommandRegisterEvent(val command: StellarCommand) : AbstractStellarEvent() |