mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 15:03:36 +01:00
Merge branch 'master' of https://github.com/Zrips/Jobs.git
This commit is contained in:
commit
1932648fd5
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user