parent
1385f99413
commit
c76a154caa
|
|
@ -132,7 +132,7 @@ object InviteCodeCommands {
|
|||
!InviteCode.find { InviteCodes.name eq arg }.empty()
|
||||
}
|
||||
}
|
||||
suggestion<ConsoleCommandSender> { _, _ ->
|
||||
suggestion<ConsoleCommandSender>(uncheck = true) { _, _ ->
|
||||
return@suggestion Bukkit.getOnlinePlayers().map { it.name }
|
||||
}
|
||||
dynamic {
|
||||
|
|
|
|||
|
|
@ -48,6 +48,12 @@ object InvitedListener {
|
|||
if (!e.message.contains("use")) e.isCancelled = true
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
fun onInteractEntity(e: PlayerInteractEntityEvent) {
|
||||
if (!cache.containsKey(e.player.uniqueId)) return
|
||||
e.isCancelled = true
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
fun onJoin(e: PlayerJoinEvent) {
|
||||
tailrec suspend fun requireQQNumber(player: Player): String? {
|
||||
|
|
|
|||
Loading…
Reference in New Issue