Added FastLogin permission control
This commit is contained in:
parent
945604a5d6
commit
3d5893360c
9 changed files with 15 additions and 2 deletions
Binary file not shown.
|
@ -32,5 +32,7 @@
|
|||
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_/worldguard-legacy-6.1.2-SNAPSHOT-dist.jar"/>
|
||||
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_/worldedit-bukkit-6.1.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/FastLogin.jar"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -22,7 +22,7 @@ commands:
|
|||
warmode:
|
||||
description: Toggles war mode
|
||||
author: NorbiPeti
|
||||
depend: [Essentials, Towny, Minigames, Votifier, Factions, WorldGuard, WorldEdit, OreRegenerator]
|
||||
depend: [Essentials, Towny, Minigames, Votifier, Factions, WorldGuard, WorldEdit, OreRegenerator, ProtocolLib, FastLogin, Vault]
|
||||
permissions:
|
||||
tbmc.admin:
|
||||
description: Gives access to /un- commands and /u admin commands
|
||||
|
|
|
@ -40,6 +40,7 @@ import au.com.mineauz.minigames.MinigamePlayer;
|
|||
import au.com.mineauz.minigames.Minigames;
|
||||
|
||||
import com.earth2me.essentials.Essentials;
|
||||
import com.github.games647.fastlogin.bukkit.FastLoginBukkit;
|
||||
import com.massivecraft.factions.entity.BoardColl;
|
||||
import com.massivecraft.massivecore.ps.PS;
|
||||
import com.palmergames.bukkit.towny.exceptions.NotRegisteredException;
|
||||
|
@ -130,9 +131,19 @@ public class PlayerListener implements Listener {
|
|||
}
|
||||
}
|
||||
|
||||
mp.RPMode = true; // 2015.08.25.
|
||||
mp.RPMode = true;
|
||||
|
||||
mp.SetFlairColor(mp.GetFlairColor()); // Update display
|
||||
|
||||
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))) {
|
||||
PluginMain.permission.playerAdd(event.getPlayer(),
|
||||
"authme.player.*");
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
|
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