DemonPvpProtect/src/main/java/com/yaohun/pvpprotect/api/ProtectAPI.java
2025-08-10 04:06:13 +08:00

17 lines
445 B
Java

package com.yaohun.pvpprotect.api;
import com.yaohun.pvpprotect.PvpMain;
import com.yaohun.pvpprotect.manage.PlayerManager;
public class ProtectAPI {
// 判断玩家是否开启竞技保护
public static boolean hasPvpProtect(String playerName) {
PlayerManager playerManager = PvpMain.getPlayerManager();
if (playerManager.isPlayerOpened(playerName)) {
return true;
}
return false;
}
}