ByVoxar
options:
vip_groups::*: vip,mvip,kvip
command /vipsure:
trigger:
set {_p} to player
set {_found} to false
loop {@vip_groups::*}:
set {_group} to loop-value
set {_expiry_raw} to placeholder "luckperms_group_expiry_time_%{_group}%" parsed as {_p}
if {_expiry_raw} is "":
# PAPI varsa
set {_expiry_raw} to placeholderapi parse "%%luckperms_group_expiry_time_%{_group}%%" for {_p}
send "&7[DEBUG] %{_group}% => %{_expiry_raw}%"
if {_expiry_raw} is not "" and {_expiry_raw} is not "None" and {_expiry_raw} is not "permanent":
set {_found} to true
set {_vip} to {_group}
set {_time} to {_expiry_raw}
stop loop
if {_found} is true:
send "&aSahip olduğunuz &e%{_vip}% &arütbesinin bitmesine kalan süre: &b%{_time}%"
else:
send "&cŞu anda süreli bir VIP rütbeniz bulunmamaktadır."
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!