17 lines
445 B
Java
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;
|
|
}
|
|
}
|