1
0
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:
nossr50
2011-01-04 13:06:02 -08:00
parent e192fd366e
commit f5d220e7a3
3 changed files with 112 additions and 0 deletions

View File

@@ -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));
}
}