Skip to content

Commit

Permalink
修复参观账户功能无法禁用
Browse files Browse the repository at this point in the history
  • Loading branch information
ApliNi committed Oct 1, 2024
1 parent 19ed595 commit a2f9ffa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ApliNi</groupId>
<artifactId>IpacWhitelist</artifactId>
<version>4.1.3-rc2</version>
<version>4.1.3-rc3</version>
<packaging>jar</packaging>

<name>IpacWhitelist</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ else if(onOtherPlayer != Type.NOT){
// 参观账户不在白名单中
case VISIT, NOT -> {
// 未启用参观账户
if(!config.getBoolean("whitelist.visitEnable", true)){
if(!config.getBoolean("whitelist.NOT.visitEnable", true)){
event.disallow(KICK_OTHER, msg(config.getString("whitelist.NOT.notMsg", ""), playerUUID, playerName));
return;
}
Expand Down Expand Up @@ -338,7 +338,7 @@ public void onPlayerJoinEvent(PlayerJoinEvent event){
// 记录在线的参观账户
visitPlayerList.add(pd.uuid);
// 为参观账户注册账号
if(config.getBoolean("whitelist.VISIT.AuthMePlugin.autoRegisterAndLogin", true)){
if(config.getBoolean("whitelist.VISIT.AuthMePlugin.autoRegisterAndLogin", false)){
if(registeredPlayerName(pd.name)){
plugin.getLogger().info("为参观账户 "+ player.getName() +" 注册账号");
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ whitelist:
# [AuthMe] 自动注册登录参观账户
AuthMePlugin:
# 为参观账户自动注册和登录, 相当于 `/authme register <playerName> <password>` 和 `/authme forcelogin <playerName>`, 但不会踢出玩家
autoRegisterAndLogin: true
autoRegisterAndLogin: false
# 需要在这里填写一个复杂的密码, 只要满足 AuthMe 的密码规则即可
autoRegisterPassword: 'complexPassword'

Expand Down

0 comments on commit a2f9ffa

Please sign in to comment.