Package com.enhancedechest.command.admin
Class ChestAdminCommand
java.lang.Object
com.enhancedechest.command.admin.ChestAdminCommand
Admin chest management: /ee add|resize|delete <player> ... .
Adding allocates the next free index (no index argument) and may grant an expiring chest.
Resizing spills cut-off items into a temp chest.
/ee delete <player> <count> [force]
removes the count newest (highest-index) chests, spilling each by default or hard-deleting
with the literal force; the player's first chest is always kept. All DB work runs async on
the service executor (which serializes item-moving operations and force-closes open GUIs); the
result is reported to the sender.
The target player is resolved asynchronously via PlayerResolver, so an offline owner is
found from the plugin's own name index even when the server usercache does not know them.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic intadd(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int size, int count) static intadd(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int size, int count, String duration) static intstatic intdeleteForce(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int count) static intresize(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int index, int size) static intstatic intstatic int
-
Method Details
-
add
public static int add(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int size) -
add
public static int add(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int size, int count) -
add
-
resize
public static int resize(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int index, int size) -
delete
public static int delete(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int count) -
deleteForce
public static int deleteForce(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int count) -
view
public static int view(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName) -
viewList
public static int viewList(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName) -
view
public static int view(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int index)
-