1020250 is not greater than [[long:500]]

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Xeterios

Member
Mar 13, 2020
4
1
0
When I try to use my custom made command, it works correctly, except it states that 1020250 is not greater than [[long:500]].

Skript file:
command /durability:
permission: skript.repair.use
permission message: &2&lM&a&lU &8» &7You don't have permission!
trigger:
set {_tokens} to placeholder "tokenenchant_token_long"
if {_tokens} isn't greater than 500:
message "&c&lSELL &8» &cYou need 500 tokens to repair your item!"
stop
if {_tokens} is greater than 500:
repair tool of player

Skript debug:
> [16:26:26 INFO]: Xeterios [2b85d1c7-6003-4377-b84a-8f381d04473b]: /durability
> [16:26:26 INFO]: [Skript] # /durability
> [16:26:26 INFO]: [Skript] command /durability (simple event)
> [16:26:26 INFO]: [Skript] set 1020250 to the value of placeholder "tokenenchant_token_long" from [player:Xeterios [location:emoji_frowning:Spawn:-8.653115211981785,183.0,-24.91444004648185|yaw=10.003235/pitch=16.746828)]]
> [16:26:26 INFO]: [Skript] 1020250 is not greater than [[long:500]] (comparator: null)
> [16:26:26 INFO]: [Skript] send "SELL » You need 500 tokens to repair your item!" to [player:Xeterios [location:emoji_frowning:Spawn:-8.653115211981785,183.0,-24.91444004648185|yaw=10.003235/pitch=16.746828)]]
> [16:26:26 INFO]: [Skript] -stop 2 sections
> [16:26:26 INFO]: [Skript] # durability took 0.532412 milliseconds
 
Status
Not open for further replies.