aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-02-08 17:24:45 +0100
committerPacien TRAN-GIRARD2015-02-08 17:31:41 +0100
commit00443f9d168dc4fc272dee84c9ab8641062bf259 (patch)
treee5477ad819dbae0de51c09a007764cd009760877 /app/controllers
parentf90cd0da3eda7c1723ce4de439f64334c81db712 (diff)
downloadminibay-00443f9d168dc4fc272dee84c9ab8641062bf259.tar.gz
Add negative bonus cheat
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/Console.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/Console.scala b/app/controllers/Console.scala
index 5c576b5..b3e7804 100644
--- a/app/controllers/Console.scala
+++ b/app/controllers/Console.scala
@@ -35,10 +35,11 @@ object Console extends Controller {
35 val grant = commandData.command match { 35 val grant = commandData.command match {
36 case "kaching" => 1000 36 case "kaching" => 1000
37 case "motherlode" => 5000 37 case "motherlode" => 5000
38 case "clippy" => -400000
38 case _ => 0 39 case _ => 0
39 } 40 }
40 41
41 if (grant > 0) { 42 if (grant != 0) {
42 Tables.Transactions += Tables.Transaction( 43 Tables.Transactions += Tables.Transaction(
43 userUuid = request.account.get.userUuid.get, 44 userUuid = request.account.get.userUuid.get,
44 transactionDate = new java.sql.Timestamp(new java.util.Date().getTime), 45 transactionDate = new java.sql.Timestamp(new java.util.Date().getTime),