Class ChestAdminCommand

java.lang.Object
com.enhancedechest.command.admin.ChestAdminCommand

public final class ChestAdminCommand extends Object
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 &lt;player&gt; &lt;count&gt; [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 Type
    Method
    Description
    static int
    add(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int size)
     
    static int
    add(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int size, int count)
     
    static int
    add(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int size, int count, String duration)
     
    static int
    delete(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int count)
     
    static int
    deleteForce(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int count)
     
    static int
    resize(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int index, int size)
     
    static int
    view(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName)
     
    static int
    view(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int index)
     
    static int
    viewList(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static int add(io.papermc.paper.command.brigadier.CommandSourceStack source, String playerName, int size, int count, String duration)
    • 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)