1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 15:03:36 +01:00
This commit is contained in:
Zrips 2019-10-29 15:59:24 +02:00
commit 1932648fd5
2 changed files with 1 additions and 30 deletions

View File

@ -164,8 +164,7 @@ public class GuiManager {
}
public void openJobsBrowseGUI(Player player, Job job) {
Inventory tempInv = Bukkit.createInventory(new JobsInventoryHolder(player), 54, "");
Inventory tempInv = Bukkit.createInventory(player, 54, "");
ItemStack GuiItem = job.getGuiItem();
JobsPlayer JPlayer = Jobs.getPlayerManager().getJobsPlayer(player);

View File

@ -1,28 +0,0 @@
package com.gamingmesh.jobs.Gui;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.InventoryView;
public class JobsInventoryHolder implements InventoryHolder {
private Player player = null;
public JobsInventoryHolder(Player player) {
this.player = player;
}
@Override
public Inventory getInventory() {
return player.getOpenInventory().getTopInventory();
}
public InventoryView getOpenInventory() {
return player.getOpenInventory();
}
public Player getPlayer() {
return player;
}
}