// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.server.core.command.commands.player.stats;

import com.hypixel.hytale.server.core.command.commands.world.entity.stats.EntityStatsDumpCommand;
import java.util.Collections;
import com.hypixel.hytale.component.Store;
import com.hypixel.hytale.server.core.universe.world.World;
import com.hypixel.hytale.server.core.universe.PlayerRef;
import javax.annotation.Nullable;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import com.hypixel.hytale.component.Ref;
import javax.annotation.Nonnull;
import com.hypixel.hytale.server.core.command.system.CommandContext;
import com.hypixel.hytale.server.core.command.system.basecommands.AbstractTargetPlayerCommand;

public class PlayerStatsDumpCommand extends AbstractTargetPlayerCommand
{
    public PlayerStatsDumpCommand() {
        super("dump", "server.commands.player.stats.dump.desc");
    }
    
    @Override
    protected void execute(@Nonnull final CommandContext context, @Nullable final Ref<EntityStore> sourceRef, @Nonnull final Ref<EntityStore> ref, @Nonnull final PlayerRef playerRef, @Nonnull final World world, @Nonnull final Store<EntityStore> store) {
        EntityStatsDumpCommand.dumpEntityStatsData(context, Collections.singletonList(playerRef.getReference()), store);
    }
}
