Skip to content
This repository has been archived by the owner on Jan 5, 2020. It is now read-only.

Commit

Permalink
updated defaults, added whoami
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkyAI committed May 7, 2018
1 parent 3de5675 commit 10ac3bf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/kotlin/matterlink/config/BaseConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract class BaseConfig(rootDir: File) {


data class CommandOptions(
val prefix: String = "$",
val prefix: String = "!",
val enable: Boolean = true
)

Expand Down
10 changes: 9 additions & 1 deletion core/src/main/kotlin/matterlink/config/CommandConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ object CommandConfig {
type = CommandType.EXECUTE,
execute = "forge tps",
help = "Print server tps",
allowArgs = false
allowArgs = false,
timeout = 200
),
"list" to CustomCommand(
type = CommandType.EXECUTE,
Expand All @@ -41,6 +42,13 @@ object CommandConfig {
response = "{uptime}",
help = "Print server uptime",
allowArgs = false
),
"whoami" to CustomCommand(
type = CommandType.RESPONSE,
response = "server: `{server}` userid: `{userid}` user: `{user}`",
help = "Print debug user data",
allowArgs = false,
timeout = 200
)
)

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod_name = MatterLink
mod_version = 1.5.5
mod_version = 1.5.6
forgelin_version = 1.6.0
curse_id = 287323
curse_release_type = beta

0 comments on commit 10ac3bf

Please sign in to comment.