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)
 | 
			
		||||
	{
 | 
			
		||||
		if (player.isInvisible() && hide)
 | 
			
		||||
		if (player.hasEnteredWorld())
 | 
			
		||||
		{
 | 
			
		||||
			// already hiding
 | 
			
		||||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		if (!player.isInvisible() && !hide)
 | 
			
		||||
		{
 | 
			
		||||
			// already visible
 | 
			
		||||
			return false;
 | 
			
		||||
			if (player.isInvisible() && hide)
 | 
			
		||||
			{
 | 
			
		||||
				// already hiding
 | 
			
		||||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
			if (!player.isInvisible() && !hide)
 | 
			
		||||
			{
 | 
			
		||||
				// already visible
 | 
			
		||||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		player.setSilenceMode(hide);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user