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