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> </plugin>
</plugins> </plugins>
</build> </build>
<version>3.1.1</version> <version>3.1.2-DEV-1</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>

View File

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

View File

@ -3,7 +3,7 @@ author: Xephi59
website: http://dev.bukkit.org/bukkit-plugins/authme-recoded/ 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. 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 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] softdepend: [Vault, ChestShop, Spout, Multiverse-Core, Notifications, Citizens, CombatTag, Essentials, EssentialsSpawn]
commands: commands:
register: register: