17 lines
608 B
Kotlin
17 lines
608 B
Kotlin
package nl.voidcorp.mainplugin.commands
|
|
|
|
import org.bukkit.Sound
|
|
import org.bukkit.SoundCategory
|
|
import org.bukkit.command.Command
|
|
import org.bukkit.command.CommandSender
|
|
import org.bukkit.entity.Player
|
|
|
|
class MemeCommand : VoidCommand() {
|
|
override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<out String>): Boolean {
|
|
if (sender is Player) {
|
|
sender.playSound(sender.location, Sound.ENTITY_CREEPER_PRIMED, SoundCategory.BLOCKS, 10.0f, 1.0f)
|
|
sender.sendTitle("Memes", "That's a creeper", 10, 60, 10)
|
|
}
|
|
return true
|
|
}
|
|
} |