Class ChestTransferCommand

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

public final class ChestTransferCommand extends Object
/ee transfer <from> <to> <index|name|all> [override|temp] — moves a player's ender chests onto another account when someone switches accounts. The conflict flag and the target are parsed out of a single greedy argument so the target may be all, a #index or a custom chest name (which can contain spaces), with the optional override/temp flag as the last word.

Both players are resolved asynchronously via PlayerResolver, so offline accounts are found from the plugin's own name index even when the server usercache does not know them.

  • Method Details

    • transfer

      public static int transfer(io.papermc.paper.command.brigadier.CommandSourceStack source, String fromName, String toName, String rest)