#쿨타임 플러그인

1 messages · Page 1 of 1 (latest)

wanton reef
#

쿨타임을 생성할때 시간을 저장,
불러올때 시간을 비교하는 방식의 쿨타임 API

Skript 에서 사용하기!

import:
    org.rottenbread.bTCooldownAPI.CooldownManager

on leftclick:
    if player's tool is netherite sword:
        set {_b} to CooldownManager.getRemaining("dash", player's uuid, 10)
        if {_b} <= 0:
            CooldownManager.apply("dash", player's uuid, 10)
            broadcast "깔롱"
        else:
            broadcast "쿨타임 중입니다. (%{_b} / 1000%s)"

on rightclick:
    if player's tool is netherite sword:
        set {_b} to CooldownManager.getRemaining("slash", player's uuid, 10)
        if {_b} <= 0:
            CooldownManager.apply("slash", player's uuid, 10)
            broadcast "깔로롱"
        else:
            broadcast "쿨타임 중입니다. (%{_b} / 1000%s)"

https://github.com/RottenBread/BTCooldownAPI

GitHub

효율적인 쿨타임 플러그인 :3. Contribute to RottenBread/BTCooldownAPI development by creating an account on GitHub.

ivory steppe
#

어떤 쿨타임 인가요