mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Back to the old way of doing things
This commit is contained in:
		@@ -41,14 +41,8 @@ public class PartyManager {
 | 
				
			|||||||
     * @return true if they are in the same party, false otherwise
 | 
					     * @return true if they are in the same party, false otherwise
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public boolean inSameParty(Player firstPlayer, Player secondPlayer) {
 | 
					    public boolean inSameParty(Player firstPlayer, Player secondPlayer) {
 | 
				
			||||||
        //Since party can be null at times, we need to make sure that it isn't null here
 | 
					        if (Users.getProfile(firstPlayer).getParty() == null || Users.getProfile(secondPlayer).getParty() == null 
 | 
				
			||||||
        if(Users.getProfile(firstPlayer).getParty() == null || Users.getProfile(secondPlayer).getParty() == null)
 | 
					                || Users.getProfile(firstPlayer).getParty().equals(Users.getProfile(secondPlayer).getParty())) {
 | 
				
			||||||
            return false;
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        Party firstParty = Users.getProfile(firstPlayer).getParty();
 | 
					 | 
				
			||||||
        Party secondParty = Users.getProfile(secondPlayer).getParty();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if (firstParty == null || secondParty == null || firstParty != secondParty) {
 | 
					 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user