9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-27 19:09:09 +00:00

bug fix 1.4.5-hotfix

This commit is contained in:
Xiao-MoMi
2022-06-21 22:52:35 +08:00
parent f4a9b3b217
commit 823b4603e2
2 changed files with 14 additions and 14 deletions

View File

@@ -41,35 +41,26 @@ public class IntegrationCheck {
}
//种植等权限检测
public static boolean PlaceCheck(Location location, Player player){
boolean canB = false;
if(ConfigManager.Config.res){
if(ResidenceIntegrations.checkResBuild(location,player)){
canB = true;
}else {
if(!ResidenceIntegrations.checkResBuild(location,player)){
return false;
}
}
if(ConfigManager.Config.king){
if(KingdomsXIntegrations.checkKDBuild(location,player)){
canB = true;
}else {
if(!KingdomsXIntegrations.checkKDBuild(location,player)){
return false;
}
}
if(ConfigManager.Config.wg){
if(WorldGuardIntegrations.checkWGBuild(location, player)){
canB = true;
}else {
if(!WorldGuardIntegrations.checkWGBuild(location, player)){
return false;
}
}
if(ConfigManager.Config.gd){
if(GriefDefenderIntegrations.checkGDBuild(location, player)){
canB = true;
}else {
if(!GriefDefenderIntegrations.checkGDBuild(location, player)){
return false;
}
}
return canB;
return true;
}
}