mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-19 14:01:20 +01:00
Fix teleports not working.
This commit is contained in:
parent
adf3a4c9a3
commit
094c777068
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>cc.co.evenprime.bukkit</groupId>
|
<groupId>cc.co.evenprime.bukkit</groupId>
|
||||||
<artifactId>NoCheat</artifactId>
|
<artifactId>NoCheat</artifactId>
|
||||||
<version>3.1.0</version>
|
<version>3.1.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>NoCheat</name>
|
<name>NoCheat</name>
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -81,10 +81,6 @@ public class MovingCheckListener implements Listener, EventManager {
|
|||||||
@EventHandler(priority = EventPriority.HIGHEST)
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
public void teleport(final PlayerTeleportEvent event) {
|
public void teleport(final PlayerTeleportEvent event) {
|
||||||
|
|
||||||
// No typo here, I really want to only handle cancelled events
|
|
||||||
if(!event.isCancelled())
|
|
||||||
return;
|
|
||||||
|
|
||||||
NoCheatPlayer player = plugin.getPlayer(event.getPlayer());
|
NoCheatPlayer player = plugin.getPlayer(event.getPlayer());
|
||||||
final MovingData data = MovingCheck.getData(player.getDataStore());
|
final MovingData data = MovingCheck.getData(player.getDataStore());
|
||||||
|
|
||||||
@ -111,7 +107,7 @@ public class MovingCheckListener implements Listener, EventManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void portal(final PlayerRespawnEvent event) {
|
public void respawn(final PlayerRespawnEvent event) {
|
||||||
final MovingData data = MovingCheck.getData(plugin.getPlayer(event.getPlayer()).getDataStore());
|
final MovingData data = MovingCheck.getData(plugin.getPlayer(event.getPlayer()).getDataStore());
|
||||||
data.clearMorePacketsData();
|
data.clearMorePacketsData();
|
||||||
data.clearRunFlyData();
|
data.clearRunFlyData();
|
||||||
|
Loading…
Reference in New Issue
Block a user