Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/java/dev/noah/perplayerkit/KitRoomDataManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ public ItemStack[] getKitRoomPage(int page) {
return kitroomData.get(page);
}

public int pageCount() {
return kitroomData.size();
}

public void saveToDBAsync() {
new BukkitRunnable() {

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/dev/noah/perplayerkit/PerPlayerKit.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import dev.noah.perplayerkit.listeners.antiexploit.CommandListener;
import dev.noah.perplayerkit.listeners.antiexploit.ShulkerDropItemsListener;
import dev.noah.perplayerkit.listeners.features.OldDeathDropListener;
import dev.noah.perplayerkit.gui.configurable.ConfigurableGuiService;
import dev.noah.perplayerkit.storage.StorageManager;
import dev.noah.perplayerkit.storage.StorageSelector;
import dev.noah.perplayerkit.storage.exceptions.StorageConnectionException;
Expand Down Expand Up @@ -95,6 +96,7 @@ public void onEnable() {

new Lang(this);
new StyleManager(this);
new ConfigurableGuiService(this);

new ItemFilter(this);
new BroadcastManager(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@
package dev.noah.perplayerkit.commands.kits;

import dev.noah.perplayerkit.commands.core.CommandGuards;
import dev.noah.perplayerkit.gui.ItemUtil;
import dev.noah.perplayerkit.util.Lang;
import dev.noah.perplayerkit.util.StyleManager;
import dev.noah.perplayerkit.util.SoundManager;
import dev.noah.perplayerkit.gui.configurable.ConfigurableGuiService;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.ipvp.canvas.Menu;
import org.ipvp.canvas.type.ChestMenu;
import org.jetbrains.annotations.NotNull;

public class EnderchestCommand implements CommandExecutor {
Expand All @@ -45,24 +39,6 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
}

public void viewOnlyEC(Player player) {

ItemStack fill = ItemUtil.createGlassPane();

Menu menu = ChestMenu.builder(5).title(StyleManager.get().getPrimaryColor() + Lang.get().legacy("gui.enderchest-view-title")).build();


for (int i = 0; i < 9; i++) {
menu.getSlot(i).setItem(fill);
}
for (int i = 36; i < 45; i++) {
menu.getSlot(i).setItem(fill);
}
// set the items in the inventory to the items in the enderchest
ItemStack[] items = player.getEnderChest().getContents();
for (int i = 0; i < 27; i++) {
menu.getSlot(i + 9).setItem(items[i]);
}
menu.open(player);
SoundManager.playOpenGui(player);
ConfigurableGuiService.get().openViewOnlyEnderchest(player);
}
}
113 changes: 0 additions & 113 deletions src/main/java/dev/noah/perplayerkit/gui/EditorSaver.java

This file was deleted.

Loading
Loading