Skip to content

Commit

Permalink
Version 1.7.1, fixed not being able to disable block, auth by last un…
Browse files Browse the repository at this point in the history
…ique id not working
  • Loading branch information
shoghicp committed May 25, 2015
1 parent dc9b392 commit e273cfd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: SimpleAuth
main: SimpleAuth\SimpleAuth
version: 1.7.0
version: 1.7.1
api: 1.12.0
load: STARTUP
author: PocketMine Team
Expand Down
2 changes: 1 addition & 1 deletion src/SimpleAuth/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(SimpleAuth $plugin){
* @priority LOWEST
*/
public function onPlayerJoin(PlayerJoinEvent $event){
if($this->plugin->getConfig()->get("authenticateByLastId") === true and $event->getPlayer()->hasPermission("simpleauth.lastid")){
if($this->plugin->getConfig()->get("authenticateByLastUniqueId") === true and $event->getPlayer()->hasPermission("simpleauth.lastid")){
$config = $this->plugin->getDataProvider()->getPlayer($event->getPlayer());
if($config !== null and $config["lastip"] === $event->getPlayer()->getUniqueId()){
$this->plugin->authenticatePlayer($event->getPlayer());
Expand Down
2 changes: 1 addition & 1 deletion src/SimpleAuth/SimpleAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function deauthenticatePlayer(Player $player){
}

public function tryAuthenticatePlayer(Player $player){
if($this->isPlayerAuthenticated($player)){
if($this->blockPlayers <= 0 and $this->isPlayerAuthenticated($player)){
return;
}

Expand Down

0 comments on commit e273cfd

Please sign in to comment.