All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.skillw.attsystem.internal.command.sub.MirrorCommand.kt Maven / Gradle / Ivy

The newest version!
package com.skillw.attsystem.internal.command.sub

import com.skillw.attsystem.internal.command.ASCommand.soundSuccess
import com.skillw.attsystem.util.legacy.Mirror
import taboolib.common.platform.ProxyCommandSender
import taboolib.common.platform.command.subCommand
import taboolib.common.platform.function.submitAsync
import taboolib.module.lang.sendLang

object MirrorCommand {
    val report = subCommand {
        execute { sender, _, _ ->
            sender.soundSuccess()
            submitAsync { Mirror.report(sender) }
        }
    }

    val clear = subCommand {
        execute { sender, _, _ ->
            sender.soundSuccess()
            sender.sendLang("command-clear")
            Mirror.mirrorData.clear()
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy