mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Updated to latest RB and fixed formatting
This commit is contained in:
1 parent
c50e1e883b
commit
189ba31abe
3 files changed
+6
-4
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
AntiCheat
|
AntiCheat
|
||||||
=============
|
=============
|
||||||
|
|
||||||
Stop heckers and cheaters in their tracks!
|
Stop hackers and cheaters in their tracks!
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-------
|
-------
|
||||||
|
|||||||
@@ -41,14 +41,14 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
<artifactId>craftbukkit</artifactId>
|
<artifactId>craftbukkit</artifactId>
|
||||||
<version>1.2.5-R2.0</version>
|
<version>1.2.5-R3.0</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
<artifactId>bukkit</artifactId>
|
<artifactId>bukkit</artifactId>
|
||||||
<version>1.2.5-R2.0</version>
|
<version>1.2.5-R3.0</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -204,7 +204,9 @@ public class PlayerListener extends EventListener
|
|||||||
from.setY(from.getY()-1);
|
from.setY(from.getY()-1);
|
||||||
from.setZ(from.getZ()-1);
|
from.setZ(from.getZ()-1);
|
||||||
if(from.getBlock().getTypeId() == 0)
|
if(from.getBlock().getTypeId() == 0)
|
||||||
|
{
|
||||||
event.setTo(from);
|
event.setTo(from);
|
||||||
|
}
|
||||||
for(int i= 5;i>0;i--)
|
for(int i= 5;i>0;i--)
|
||||||
{
|
{
|
||||||
Location newLocation = new Location(player.getWorld(), player.getLocation().getX(), player.getLocation().getY()-i, player.getLocation().getZ());
|
Location newLocation = new Location(player.getWorld(), player.getLocation().getX(), player.getLocation().getY()-i, player.getLocation().getZ());
|
||||||
@@ -222,7 +224,7 @@ public class PlayerListener extends EventListener
|
|||||||
{
|
{
|
||||||
event.setTo(newLocation);
|
event.setTo(newLocation);
|
||||||
}
|
}
|
||||||
log("tried to fly on y-axis", player, CheckType.FLY); //cause he's poor.
|
log("tried to fly on y-axis", player, CheckType.FLY);
|
||||||
}
|
}
|
||||||
if(checkManager.willCheck(player, CheckType.SPEED) && checkManager.willCheck(player, CheckType.ZOMBE_FLY) && checkManager.willCheck(player, CheckType.FLY))
|
if(checkManager.willCheck(player, CheckType.SPEED) && checkManager.willCheck(player, CheckType.ZOMBE_FLY) && checkManager.willCheck(player, CheckType.FLY))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user