mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 05:54:05 +09:00
Object-ified console commands (singleton!)
Former-commit-id: d04fc939a659fc4a6b952d64894bd28edf97bc38 Former-commit-id: 6c20526f3bdda2d9d08dc156b3b0fe271e89bffb
This commit is contained in:
@@ -7,7 +7,7 @@ import org.apache.commons.codec.digest.DigestUtils
|
||||
/**
|
||||
* Created by minjaesong on 16-02-19.
|
||||
*/
|
||||
class Authenticator : ConsoleCommand {
|
||||
internal object Authenticator : ConsoleCommand {
|
||||
|
||||
private var a = false
|
||||
|
||||
@@ -19,7 +19,7 @@ class Authenticator : ConsoleCommand {
|
||||
if ("65b9aa150332ed7096134efb20220e5ebec04d4dbe1c537ff3816f68c2391c1c".equals(hashedPwd, ignoreCase = true)) {
|
||||
// aryll
|
||||
val msg = if (a) "Locked" else "Authenticated"
|
||||
Echo().execute(msg)
|
||||
Echo.execute(msg)
|
||||
println("[Authenticator] " + msg)
|
||||
a = !a
|
||||
(Terrarum.ingame.consoleHandler.UI as ConsoleWindow).reset()
|
||||
|
||||
Reference in New Issue
Block a user