BuilderUtil setHiding should check if player has entered world.
This commit is contained in:
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -66,6 +66,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -78,6 +80,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -66,6 +66,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -78,6 +80,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -66,6 +66,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -78,6 +80,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
@@ -67,6 +67,8 @@ public class BuilderUtil
|
||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
player.setInvul(hide);
|
||||
|
||||
Reference in New Issue
Block a user