mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-20 18:53:11 +01:00
Added invisibility, still need to fix up the code and add a few things. Wouldn't have been possible without the Vanish plugin authors permission to use his code. Double thanks!
This commit is contained in:
@@ -9,4 +9,9 @@ public class vMinecraftParty {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public static double getDistance(Player player1, Player player2)
|
||||
{
|
||||
return Math.sqrt(Math.pow(player1.getX() - player2.getX(), 2) + Math.pow(player1.getY() - player2.getY(), 2)
|
||||
+ Math.pow(player1.getZ() - player2.getZ(), 2));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user