Fix remove speed

This commit is contained in:
Gabriele C 2015-12-21 20:20:35 +01:00
parent 20b1f08c46
commit 874d7cd59f
7 changed files with 5 additions and 21 deletions

View File

@ -1,7 +1,5 @@
package fr.xephi.authme.converter;
import java.sql.SQLException;
import org.bukkit.command.CommandSender;
import fr.xephi.authme.AuthMe;

View File

@ -130,13 +130,7 @@ public class AuthMePlayerListener implements Listener {
public void onPlayerHighChat(AsyncPlayerChatEvent event) {
handleChat(event);
}
/*
* We cannot modify this event on monitor
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
public void onPlayerChat(AsyncPlayerChatEvent event) {
handleChat(event);
}
*/
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)
public void onPlayerHighestChat(AsyncPlayerChatEvent event) {
handleChat(event);

View File

@ -1,7 +1,6 @@
package fr.xephi.authme.listener;
import fr.xephi.authme.AuthMe;
import fr.xephi.authme.util.Utils;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;

View File

@ -1,7 +1,6 @@
package fr.xephi.authme.listener;
import fr.xephi.authme.AuthMe;
import fr.xephi.authme.util.Utils;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;

View File

@ -15,8 +15,6 @@
package fr.xephi.authme.mail;
import java.io.IOException;
import java.util.logging.Logger;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.NameCallback;
@ -28,9 +26,6 @@ import javax.security.sasl.SaslException;
* An OAuth2 implementation of SaslClient.
*/
class OAuth2SaslClient implements SaslClient {
private static final Logger logger =
Logger.getLogger(OAuth2SaslClient.class.getName());
private final String oauthToken;
private final CallbackHandler callbackHandler;

View File

@ -11,15 +11,10 @@ import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.HtmlEmail;
import org.bukkit.Bukkit;
import com.sun.mail.smtp.SMTPTransport;
import javax.activation.DataSource;
import javax.activation.FileDataSource;
import javax.imageio.ImageIO;
import javax.mail.Transport;
import java.io.File;
import java.security.Provider;
import java.security.Security;
/**

View File

@ -196,6 +196,10 @@ public class AsynchronousJoin {
player.setAllowFlight(true);
player.setFlying(true);
}
if (Settings.isRemoveSpeedEnabled) {
player.setFlySpeed(0.0f);
player.setWalkSpeed(0.0f);
}
player.setNoDamageTicks(timeOut);
if (Settings.useEssentialsMotd) {
player.performCommand("motd");