mirror of
https://github.com/tanyaofei/minecraft-fakeplayer.git
synced 2025-09-14 19:26:51 +08:00
Add 'prevent-kicked-on-spawning' configuration option for preventing kicked on spawning.
This commit is contained in:
parent
a5c192f63b
commit
e7f0b899c1
@ -104,7 +104,7 @@ public class FakeplayerConfig extends Config<FakeplayerConfig> {
|
||||
/**
|
||||
* 登陆时防止被踢
|
||||
*/
|
||||
private Boolean preventKickedOnSpawning;
|
||||
private boolean preventKickedOnSpawning;
|
||||
|
||||
/**
|
||||
* 检测更新
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user