Skip to content

Commit

Permalink
feat(requirements): add PermissionLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
StillLutto committed Nov 30, 2024
1 parent fe835f5 commit 4e4d1f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.undefined.stellar.data.requirement

object PermissionLevel {
const val DEFAULT = 0
const val MODERATOR = 1
const val GAME_MASTER = 2
const val ADMIN = 3
const val OWNER = 4
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ object BrigadierCommandRegistrar {
}

fun register(stellarCommand: AbstractStellarCommand<*>) {
// val helpTopic = object : HelpTopic() {
// init {
// name = "test"
// shortText = "shortText"
// fullText = "fullText"
// }
// override fun canSee(player: CommandSender): Boolean = true
// }
val information: SortedMap<String, String> = sortedMapOf()
if (stellarCommand.description != "") information["Description"] = stellarCommand.description
if (stellarCommand.usage != "") information["Usage"] = stellarCommand.usage
Expand Down

0 comments on commit 4e4d1f4

Please sign in to comment.