Update 3.3.2

//Changes 3.3.2://
* Fix Vault support
* Fix Group permission problems
* Rewrite /register and /login command, would be much faster
* Fix useWelcomeMessage
* Add a way to broadcast welcome message
* Remove Join/Quit message only if enableProtection is true
* Fix /login and /register requested at the same time
* Some other fixes
This commit is contained in:
Xephi
2014-02-10 02:46:51 +01:00
parent fec466dd29
commit 46acf9d74b
24 changed files with 898 additions and 791 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ public class PlayerAuth {
private String world = "world";
private String salt = "";
private String vBhash = null;
private int groupId;
private int groupId = -1;
private String email = "your@email.com";
private String realName = "";
+9 -2
View File
@@ -9,6 +9,7 @@ import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import fr.xephi.authme.AuthMe;
import fr.xephi.authme.ConsoleLogger;
import fr.xephi.authme.cache.backup.FileCache;
import fr.xephi.authme.events.ResetInventoryEvent;
import fr.xephi.authme.events.StoreInventoryEvent;
@@ -66,8 +67,14 @@ public class LimboCache {
if(player.isFlying())
flying = true;
else flying = false;
if (plugin.permission != null)
playerGroup = plugin.permission.getPrimaryGroup(player);
if (plugin.permission != null) {
try {
playerGroup = plugin.permission.getPrimaryGroup(player);
} catch (UnsupportedOperationException e) {
ConsoleLogger.showError("Your permission system (" + plugin.permission.getName() + ") do not support Group system with that config... unhook!");
plugin.permission = null;
}
}
}
if(Settings.isForceSurvivalModeEnabled) {
+1 -1
View File
@@ -14,7 +14,7 @@ public class LimboPlayer {
private int messageTaskId = -1;
private GameMode gameMode = GameMode.SURVIVAL;
private boolean operator = false;
private String group = null;
private String group = "";
private boolean flying = false;
public LimboPlayer(String name, Location loc, ItemStack[] inventory, ItemStack[] armour, GameMode gameMode, boolean operator, String group, boolean flying) {