Added temp fix for login movement speed 0
This commit is contained in:
parent
7a2d11afa1
commit
343c838ca6
10 changed files with 21 additions and 6 deletions
Binary file not shown.
|
@ -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/_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/_/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/_/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"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -22,7 +22,7 @@ commands:
|
||||||
warmode:
|
warmode:
|
||||||
description: Toggles war mode
|
description: Toggles war mode
|
||||||
author: NorbiPeti
|
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:
|
permissions:
|
||||||
tbmc.admin:
|
tbmc.admin:
|
||||||
description: Gives access to /un- commands and /u admin commands
|
description: Gives access to /un- commands and /u admin commands
|
||||||
|
|
|
@ -52,6 +52,8 @@ import com.palmergames.bukkit.towny.object.WorldCoord;
|
||||||
import com.vexsoftware.votifier.model.Vote;
|
import com.vexsoftware.votifier.model.Vote;
|
||||||
import com.vexsoftware.votifier.model.VotifierEvent;
|
import com.vexsoftware.votifier.model.VotifierEvent;
|
||||||
|
|
||||||
|
import fr.xephi.authme.AuthMe;
|
||||||
|
|
||||||
public class PlayerListener implements Listener {
|
public class PlayerListener implements Listener {
|
||||||
public static HashMap<String, UUID> nicknames = new HashMap<>();
|
public static HashMap<String, UUID> nicknames = new HashMap<>();
|
||||||
|
|
||||||
|
@ -135,15 +137,27 @@ public class PlayerListener implements Listener {
|
||||||
|
|
||||||
mp.SetFlairColor(mp.GetFlairColor()); // Update display
|
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.*")
|
if (!PluginMain.permission.has(event.getPlayer(), "authme.player.*")
|
||||||
&& (((FastLoginBukkit) FastLoginBukkit
|
&& (ispremium || mp.FlairState.equals(FlairStates.Accepted) || mp.FlairState
|
||||||
.getPlugin(FastLoginBukkit.class)).getEnabledPremium()
|
.equals(FlairStates.Commented))) {
|
||||||
.contains(event.getPlayer().getName())
|
|
||||||
|| mp.FlairState.equals(FlairStates.Accepted) || mp.FlairState
|
|
||||||
.equals(FlairStates.Commented))) {
|
|
||||||
PluginMain.permission.playerAdd(event.getPlayer(),
|
PluginMain.permission.playerAdd(event.getPlayer(),
|
||||||
"authme.player.*");
|
"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
|
@EventHandler
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue