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

package com.hypixel.hytale.server.core.command.commands.debug;

import com.hypixel.hytale.server.core.Message;
import com.hypixel.hytale.server.core.modules.interaction.interaction.config.none.SelectInteraction;
import javax.annotation.Nonnull;
import com.hypixel.hytale.server.core.command.system.CommandContext;
import com.hypixel.hytale.server.core.command.system.basecommands.CommandBase;

public class HitDetectionCommand extends CommandBase
{
    public HitDetectionCommand() {
        super("hitdetection", "server.commands.hitdetection.desc");
    }
    
    @Override
    protected void executeSync(@Nonnull final CommandContext context) {
        SelectInteraction.SHOW_VISUAL_DEBUG = !SelectInteraction.SHOW_VISUAL_DEBUG;
        context.sendMessage(Message.translation("server.commands.hitdetection.toggled").param("debug", SelectInteraction.SHOW_VISUAL_DEBUG));
    }
}
