Correctly get the event inventory !

This commit is contained in:
Xephi 2013-12-16 04:07:09 +01:00
parent 84e1f26484
commit aaeceae5d2
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@
</plugin>
</plugins>
</build>
<version>3.1.1</version>
<version>3.1.2-DEV-1</version>
<dependencies>
<dependency>
<groupId>org.bukkit</groupId>

View File

@ -746,7 +746,7 @@ public class AuthMePlayerListener implements Listener {
RestoreInventoryEvent ev = new RestoreInventoryEvent(player, limbo.getInventory(), limbo.getArmour());
plugin.getServer().getPluginManager().callEvent(ev);
if (!ev.isCancelled()) {
API.setPlayerInventory(player, limbo.getInventory(), limbo.getArmour());
API.setPlayerInventory(player, ev.getInventory(), ev.getArmor());
}
}
utils.addNormal(player, limbo.getGroup());

View File

@ -3,7 +3,7 @@ author: Xephi59
website: http://dev.bukkit.org/bukkit-plugins/authme-recoded/
description: AuthMe prevents people, which aren't logged in, from doing stuff like placing blocks, moving, typing commands or seeing the inventory of the current player.
main: fr.xephi.authme.AuthMe
version: 3.1.1
version: 3.1.2-DEV-1
softdepend: [Vault, ChestShop, Spout, Multiverse-Core, Notifications, Citizens, CombatTag, Essentials, EssentialsSpawn]
commands:
register: