Added temp fix for login movement speed 0

This commit is contained in:
Norbi Peti 2016-04-10 21:03:38 +02:00
parent 7a2d11afa1
commit 343c838ca6
10 changed files with 21 additions and 6 deletions

Binary file not shown.

View file

@ -34,5 +34,6 @@
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_server/OreRegen1.5.jar"/>
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_/ProtocolLib.jar"/>
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_/FastLogin.jar"/>
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_/AuthMe-5.2-SNAPSHOT-spigot.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View file

@ -22,7 +22,7 @@ commands:
warmode:
description: Toggles war mode
author: NorbiPeti
depend: [Essentials, Towny, Minigames, Votifier, Factions, WorldGuard, WorldEdit, ProtocolLib, FastLogin, Vault]
depend: [Essentials, Towny, Minigames, Votifier, Factions, WorldGuard, WorldEdit, ProtocolLib, FastLogin, Vault, AuthMe]
permissions:
tbmc.admin:
description: Gives access to /un- commands and /u admin commands

View file

@ -52,6 +52,8 @@ import com.palmergames.bukkit.towny.object.WorldCoord;
import com.vexsoftware.votifier.model.Vote;
import com.vexsoftware.votifier.model.VotifierEvent;
import fr.xephi.authme.AuthMe;
public class PlayerListener implements Listener {
public static HashMap<String, UUID> nicknames = new HashMap<>();
@ -135,15 +137,27 @@ public class PlayerListener implements Listener {
mp.SetFlairColor(mp.GetFlairColor()); // Update display
boolean ispremium = ((FastLoginBukkit) FastLoginBukkit
.getPlugin(FastLoginBukkit.class)).getEnabledPremium()
.contains(event.getPlayer().getName());
if (!PluginMain.permission.has(event.getPlayer(), "authme.player.*")
&& (((FastLoginBukkit) FastLoginBukkit
.getPlugin(FastLoginBukkit.class)).getEnabledPremium()
.contains(event.getPlayer().getName())
|| mp.FlairState.equals(FlairStates.Accepted) || mp.FlairState
.equals(FlairStates.Commented))) {
&& (ispremium || mp.FlairState.equals(FlairStates.Accepted) || mp.FlairState
.equals(FlairStates.Commented))) {
PluginMain.permission.playerAdd(event.getPlayer(),
"authme.player.*");
}
if(ispremium)
{
Bukkit.getScheduler().runTaskLater(PluginMain.Instance, new Runnable(){
public void run()
{
AuthMe.getInstance().api.forceLogout(p);
AuthMe.getInstance().api.forceLogin(p);
}
}, 100);
}
}
@EventHandler