1
0
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:
montlikadani 2019-10-29 14:54:00 +01:00
parent 64bbc0fe29
commit e03c0812ff
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;
}
}