From 2c4206b57ab21d84de6c2af7a8d865fd16a8f88c Mon Sep 17 00:00:00 2001 From: "Mr. Piggy" Date: Mon, 8 Aug 2016 22:25:55 -0700 Subject: [PATCH] Big fix! --- README.md | 3 +++ plugin.yml | 2 +- src/PiggyAuth/Main.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 50e0eb5..eb5986c 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ Safe & feature-rich auth plugin. # Changelog +###v1.0.4 +* Big Fix + ###v1.0.3 * Added /logout * Added tries diff --git a/plugin.yml b/plugin.yml index a12acf7..63024b0 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,6 +1,6 @@ name: PiggyAuth main: PiggyAuth\Main -version: 1.0.3 +version: 1.0.4 api: [2.0.0] load: POSTWORLD author: MCPEPIG diff --git a/src/PiggyAuth/Main.php b/src/PiggyAuth/Main.php index a8a48d0..386244e 100644 --- a/src/PiggyAuth/Main.php +++ b/src/PiggyAuth/Main.php @@ -72,7 +72,7 @@ public function getPlayer($player) { return null; } - public function updatePlayer(Player $player, $pin, $password, $uuid, $attempts) { + public function updatePlayer(Player $player, $password, $pin, $uuid, $attempts) { $statement = $this->db->prepare("UPDATE players SET pin = :pin, password = :password, uuid = :uuid, attempts = :attempts WHERE name = :name"); $statement->bindValue(":name", strtolower($player->getName()), SQLITE3_TEXT); $statement->bindValue(":password", $password, SQLITE3_TEXT);