mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 00:58:04 +01:00
Fixed issues while implementing the warps addon.
This commit is contained in:
parent
5b6e3cec7e
commit
002c54ef21
@ -218,4 +218,11 @@ public class User {
|
||||
public World getWorld() {
|
||||
return player.getWorld();
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes the user's inventory
|
||||
*/
|
||||
public void closeInventory() {
|
||||
player.closeInventory();
|
||||
}
|
||||
}
|
||||
|
@ -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() {
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user