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

com.skillw.pouvoir.internal.command.sub.PouMirrorCommand.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.pouvoir.internal.command.sub

import com.skillw.pouvoir.internal.command.PouvoirCommand.soundSuccess
import com.skillw.pouvoir.util.legacy.Mirror
import taboolib.common.platform.ProxyCommandSender
import taboolib.common.platform.command.subCommand
import taboolib.module.lang.sendLang

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy