Dev - 3.1.2-DEV-3

Developpement status actually
Some Fixes for the 1.7.2
Remove some Magic Values
Fix threads not start correctly
Add a recall email adding message
Fix catpcha messages
Add multilines messages ( add &n )
Fix some inventory problem
Fix some events problem
Call login event after /register
This commit is contained in:
Xephi
2014-01-06 17:54:50 +01:00
parent aaeceae5d2
commit 93a320c8ae
29 changed files with 420 additions and 254 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ public class LimboCache {
String name = player.getName().toLowerCase();
Location loc = player.getLocation();
loc.setY(loc.getY() + 0.4D);
int gameMode = player.getGameMode().getValue();
GameMode gameMode = player.getGameMode();
ItemStack[] arm;
ItemStack[] inv;
boolean operator;
@@ -78,7 +78,7 @@ public class LimboCache {
player.sendMessage("Your inventory has been cleaned!");
}
}
gameMode = 0;
gameMode = GameMode.SURVIVAL;
}
if(player.isDead()) {
loc = plugin.getSpawnLocation(player.getWorld());
+5 -4
View File
@@ -1,5 +1,6 @@
package fr.xephi.authme.cache.limbo;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.inventory.ItemStack;
@@ -11,12 +12,12 @@ public class LimboPlayer {
private Location loc = null;
private int timeoutTaskId = -1;
private int messageTaskId = -1;
private int gameMode = 0;
private GameMode gameMode = GameMode.SURVIVAL;
private boolean operator = false;
private String group = null;
private boolean flying = false;
public LimboPlayer(String name, Location loc, ItemStack[] inventory, ItemStack[] armour, int gameMode, boolean operator, String group, boolean flying) {
public LimboPlayer(String name, Location loc, ItemStack[] inventory, ItemStack[] armour, GameMode gameMode, boolean operator, String group, boolean flying) {
this.name = name;
this.loc = loc;
this.inventory = inventory;
@@ -27,7 +28,7 @@ public class LimboPlayer {
this.flying = flying;
}
public LimboPlayer(String name, Location loc, int gameMode, boolean operator, String group, boolean flying) {
public LimboPlayer(String name, Location loc, GameMode gameMode, boolean operator, String group, boolean flying) {
this.name = name;
this.loc = loc;
this.gameMode = gameMode;
@@ -65,7 +66,7 @@ public class LimboPlayer {
this.inventory = inventory;
}
public int getGameMode() {
public GameMode getGameMode() {
return gameMode;
}