BuilderUtil setHiding should check if player has entered world.
This commit is contained in:
parent
0d6b983c6a
commit
6bed83619b
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -67,16 +67,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -67,16 +67,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -67,16 +67,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
@ -68,16 +68,19 @@ public class BuilderUtil
|
||||
*/
|
||||
public static boolean setHiding(Player player, boolean hide)
|
||||
{
|
||||
if (player.isInvisible() && hide)
|
||||
if (player.hasEnteredWorld())
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
if (player.isInvisible() && hide)
|
||||
{
|
||||
// already hiding
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
if (!player.isInvisible() && !hide)
|
||||
{
|
||||
// already visible
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.setSilenceMode(hide);
|
||||
|
Loading…
Reference in New Issue
Block a user