This repository was archived by the owner on May 24, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11name : SimpleAuth
22main : SimpleAuth\SimpleAuth
3- version : 1.7.0
3+ version : 1.7.1
44api : 1.12.0
55load : STARTUP
66author : PocketMine Team
Original file line number Diff line number Diff 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 ());
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments