Skip to content
This repository was archived by the owner on May 24, 2018. It is now read-only.

Commit e273cfd

Browse files
committed
Version 1.7.1, fixed not being able to disable block, auth by last unique id not working
1 parent dc9b392 commit e273cfd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: SimpleAuth
22
main: SimpleAuth\SimpleAuth
3-
version: 1.7.0
3+
version: 1.7.1
44
api: 1.12.0
55
load: STARTUP
66
author: PocketMine Team

src/SimpleAuth/EventListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(SimpleAuth $plugin){
4848
* @priority LOWEST
4949
*/
5050
public function onPlayerJoin(PlayerJoinEvent $event){
51-
if($this->plugin->getConfig()->get("authenticateByLastId") === true and $event->getPlayer()->hasPermission("simpleauth.lastid")){
51+
if($this->plugin->getConfig()->get("authenticateByLastUniqueId") === true and $event->getPlayer()->hasPermission("simpleauth.lastid")){
5252
$config = $this->plugin->getDataProvider()->getPlayer($event->getPlayer());
5353
if($config !== null and $config["lastip"] === $event->getPlayer()->getUniqueId()){
5454
$this->plugin->authenticatePlayer($event->getPlayer());

src/SimpleAuth/SimpleAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function deauthenticatePlayer(Player $player){
140140
}
141141

142142
public function tryAuthenticatePlayer(Player $player){
143-
if($this->isPlayerAuthenticated($player)){
143+
if($this->blockPlayers <= 0 and $this->isPlayerAuthenticated($player)){
144144
return;
145145
}
146146

0 commit comments

Comments
 (0)