mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-01 05:18:00 +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>
|
||||
<groupId>cc.co.evenprime.bukkit</groupId>
|
||||
<artifactId>NoCheat</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<version>3.1.1</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>NoCheat</name>
|
||||
<properties>
|
||||
|
@ -80,11 +80,7 @@ public class MovingCheckListener implements Listener, EventManager {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
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());
|
||||
final MovingData data = MovingCheck.getData(player.getDataStore());
|
||||
|
||||
@ -111,7 +107,7 @@ public class MovingCheckListener implements Listener, EventManager {
|
||||
}
|
||||
|
||||
@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());
|
||||
data.clearMorePacketsData();
|
||||
data.clearRunFlyData();
|
||||
|
Loading…
Reference in New Issue
Block a user