mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Remove unnecessarry class register for browse
This commit is contained in:
parent
64bbc0fe29
commit
e03c0812ff
@ -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