Store UUID instead of name for faster re-open lookups
This commit is contained in:
@@ -131,10 +131,10 @@ public class OpenEnderPluginCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Record the target
|
// Record the target
|
||||||
this.openEnderHistory.put(player, onlineTarget.getName());
|
this.openEnderHistory.put(player, this.plugin.getPlayerID(target));
|
||||||
|
|
||||||
// Create the inventory
|
// Create the inventory
|
||||||
ISpecialEnderChest chest;
|
final ISpecialEnderChest chest;
|
||||||
try {
|
try {
|
||||||
chest = this.plugin.getSpecialEnderChest(onlineTarget, online);
|
chest = this.plugin.getSpecialEnderChest(onlineTarget, online);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@@ -140,10 +140,10 @@ public class OpenInvPluginCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Record the target
|
// Record the target
|
||||||
this.openInvHistory.put(player, onlineTarget.getName());
|
this.openInvHistory.put(player, this.plugin.getPlayerID(target));
|
||||||
|
|
||||||
// Create the inventory
|
// Create the inventory
|
||||||
ISpecialPlayerInventory inv;
|
final ISpecialPlayerInventory inv;
|
||||||
try {
|
try {
|
||||||
inv = this.plugin.getSpecialInventory(onlineTarget, online);
|
inv = this.plugin.getSpecialInventory(onlineTarget, online);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Reference in New Issue
Block a user