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

walkmc.event.PlayerCommandTabCompleteEvent.kt Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package walkmc.event

import org.bukkit.entity.*
import walkmc.*

class PlayerCommandTabCompleteEvent(
	val player: Player,
	val message: String,
	var completions: MutableList
) : CancellableEvent() {
	val lastToken: String
	
	init {
		val i = message.lastIndexOf(' ')
		lastToken = if (i == -1) message else message.substring(i + 1)
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy