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}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -66,6 +66,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -78,6 +80,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -66,6 +66,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -78,6 +80,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -66,6 +66,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -78,6 +80,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
@@ -67,6 +67,8 @@ public class BuilderUtil
|
|||||||
* @return {@code true} if hide state was changed, otherwise {@code false}
|
* @return {@code true} if hide state was changed, otherwise {@code false}
|
||||||
*/
|
*/
|
||||||
public static boolean setHiding(Player player, boolean hide)
|
public static boolean setHiding(Player player, boolean hide)
|
||||||
|
{
|
||||||
|
if (player.hasEnteredWorld())
|
||||||
{
|
{
|
||||||
if (player.isInvisible() && hide)
|
if (player.isInvisible() && hide)
|
||||||
{
|
{
|
||||||
@@ -79,6 +81,7 @@ public class BuilderUtil
|
|||||||
// already visible
|
// already visible
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player.setSilenceMode(hide);
|
player.setSilenceMode(hide);
|
||||||
player.setInvul(hide);
|
player.setInvul(hide);
|
||||||
|
Reference in New Issue
Block a user