Fixed issues while implementing the warps addon.

This commit is contained in:
Tastybento 2017-12-31 14:08:15 -08:00
parent 5b6e3cec7e
commit 002c54ef21
3 changed files with 9 additions and 2 deletions

View File

@ -218,4 +218,11 @@ public class User {
public World getWorld() {
return player.getWorld();
}
/**
* Closes the user's inventory
*/
public void closeInventory() {
player.closeInventory();
}
}

View File

@ -49,7 +49,6 @@ public class PanelItem {
public void setDescription(List<String> description) {
this.description = description;
ItemMeta meta = icon.getItemMeta();
meta.setLore(description);
icon.setItemMeta(meta);
}
@ -62,7 +61,6 @@ public class PanelItem {
this.name = name;
meta.setDisplayName(name);
icon.setItemMeta(meta);
}
public Optional<ClickHandler> getClickHandler() {

View File

@ -43,6 +43,8 @@ public class Players extends DataObject {
this.locale = "";
this.kickedList = new HashMap<>();
this.playerName = Bukkit.getServer().getOfflinePlayer(uniqueId).getName();
if (this.playerName == null)
this.playerName = uniqueId.toString();
}
/**