mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-03 06:57:41 +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() {
|
public World getWorld() {
|
||||||
return player.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) {
|
public void setDescription(List<String> description) {
|
||||||
this.description = description;
|
this.description = description;
|
||||||
ItemMeta meta = icon.getItemMeta();
|
|
||||||
meta.setLore(description);
|
meta.setLore(description);
|
||||||
icon.setItemMeta(meta);
|
icon.setItemMeta(meta);
|
||||||
}
|
}
|
||||||
@ -62,7 +61,6 @@ public class PanelItem {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
meta.setDisplayName(name);
|
meta.setDisplayName(name);
|
||||||
icon.setItemMeta(meta);
|
icon.setItemMeta(meta);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Optional<ClickHandler> getClickHandler() {
|
public Optional<ClickHandler> getClickHandler() {
|
||||||
|
@ -43,6 +43,8 @@ public class Players extends DataObject {
|
|||||||
this.locale = "";
|
this.locale = "";
|
||||||
this.kickedList = new HashMap<>();
|
this.kickedList = new HashMap<>();
|
||||||
this.playerName = Bukkit.getServer().getOfflinePlayer(uniqueId).getName();
|
this.playerName = Bukkit.getServer().getOfflinePlayer(uniqueId).getName();
|
||||||
|
if (this.playerName == null)
|
||||||
|
this.playerName = uniqueId.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user