Add 'prevent-kicked-on-spawning' configuration option for preventing kicked on spawning.

This commit is contained in:
tanyaofei 2024-07-25 10:09:22 +08:00
parent a5c192f63b
commit e7f0b899c1
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ public class FakeplayerConfig extends Config<FakeplayerConfig> {
/**
* 登陆时防止被踢
*/
private Boolean preventKickedOnSpawning;
private boolean preventKickedOnSpawning;
/**
* 检测更新

View File

@ -76,7 +76,7 @@ public class FakeplayerListener implements Listener {
public void preventBeingKickedOnSpawning(@NotNull PlayerKickEvent event) {
var player = event.getPlayer();
if (!config.getPreventKickedOnSpawning()) {
if (!config.isPreventKickedOnSpawning()) {
return;
}