Update GT_Cover_PlayerDetector.java
This commit is contained in:
parent
aa4839ebf6
commit
c42c2facb1
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior {
|
||||||
playerDetected = true;
|
playerDetected = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!tEntity.getDisplayName().equalsIgnoreCase(placer)) {
|
if (tEntity.getDisplayName().equalsIgnoreCase(placer)) {
|
||||||
if (aCoverVariable == 1) {
|
if (aCoverVariable == 1) {
|
||||||
playerDetected = true;
|
playerDetected = true;
|
||||||
break;
|
break;
|
||||||
|
@ -57,8 +57,8 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior {
|
||||||
if(aCoverVariable <0){aCoverVariable = 2;}
|
if(aCoverVariable <0){aCoverVariable = 2;}
|
||||||
switch(aCoverVariable) {
|
switch(aCoverVariable) {
|
||||||
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Emit if any Player is close"); break;
|
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Emit if any Player is close"); break;
|
||||||
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Emit if you are close"); break;
|
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Emit if other player is close"); break;
|
||||||
case 2: GT_Utility.sendChatToPlayer(aPlayer, "Emit if other player is close"); break;
|
case 2: GT_Utility.sendChatToPlayer(aPlayer, "Emit if you are close"); break;
|
||||||
}
|
}
|
||||||
return aCoverVariable;
|
return aCoverVariable;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue