The Skript plugin made for Minecraft 1.8.x only. Releases will follow the original repository, except for some bug fixes. Please read the README before updating to Skript-1.8 !
When im comparing variables to my message it does not work. And also when i put it into a call for a function it did not either.
Expected Behavior
I would expect if your money is more or equal to the message it triggers "bandeVerify(player)"
Keep in mind that when i send the variable it sends the number i typed so something works.
Also i don't get errors when reloading
Steps to Reproduce
option:
pre: &7[&3Bande&7]
on chat:
if {bande.bank.indsat.event.%player%} = true:
cancel event
set {_m} to message parsed as integer
if message = "!cancel":
bandeManage(player, {bande.status.%uuid of player%})
delete {bande.bank.indsat.event.%player%}
else if message matches "\d+":
if {_m} <= 99:
send "{@pre} you have to put in more than a 100"
else:
# Here its one of the two places that functions weird. Cause even if {money.%uuid of player%} = 1000 and i type a number like 900. It doesnt go through and just continues to the one below.
if {money.%uuid of player%} is greater than or equal to {_m}:
bandeVerify(player)
else:
remove {money.%uuid of player%} from {_d}
send "%{_m}%" #sends the right number. (aka the one i type)
send "{@pre} You don't have enough money to insert &3%{_m}% &7money. you're missing &3%{_d}% &7money"
function bandeVerify(player:player, m:string):
set {_uuid} to uuid of {_player}
# here it says "<none>" in the name
set {_gui} to a new chest inventory with 3 row with name "&a&lEr du sikker? &7&l[ &3%{_m}% &7&l]"
open {_gui} to {_player}
Errors or Screenshots
It does'nt say anything in console.
Other
Yeah. My friend tried loading it with his version of skript for 1.8 "Skript 2.2-dev36.jar" and it worked without problem. As you should be able to figure out the way i use skript did'nt get outdated and should still be valid between v2.2 and v2.6.4 that yours is based on. :D
Hope to hear if you got any updates on this.
Agreement
[X] I have read the guidelines above and confirm I am following them with this report.
Skript Version
[09:22:34 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases [09:22:34 INFO]: [Skript] Skript's documentation can be found here: https://skriptlang.github.io/Skript [09:22:34 INFO]: [Skript] Server Version: git-Spigot-21fe707-741a1bd (MC: 1.8.8) [09:22:34 INFO]: [Skript] Skript Version: 2.6.2 [09:22:34 INFO]: [Skript] Installed Skript Addons: [09:22:34 INFO]: [Skript] - skript-yaml v1.4 [09:22:34 INFO]: [Skript] - skDragon v0.17 [09:22:34 INFO]: [Skript] - skript-reflect v2.3 (https://github.com/TPGamesNL/skript-reflect) [09:22:34 INFO]: [Skript] - skUtilities v0.9.2 (https://tim740.github.io/) [09:22:34 INFO]: [Skript] - skRayFall v1.9.25 (https://sk.rayfall.net/) [09:22:34 INFO]: [Skript] - SkriptJSON v1.0.0 [09:22:34 INFO]: [Skript] - SharpSK v1.6.3 [09:22:34 INFO]: [Skript] Installed dependencies: [09:22:34 INFO]: [Skript] - Vault v1.5.5-b47 [09:22:34 INFO]: [Skript] - WorldGuard v6.1.3-SNAPSHOT;c904242
Bug Description
When im comparing variables to my message it does not work. And also when i put it into a call for a function it did not either.
Expected Behavior
I would expect if your money is more or equal to the message it triggers "bandeVerify(player)"
Keep in mind that when i send the variable it sends the number i typed so something works.
Also i don't get errors when reloading
Steps to Reproduce
Errors or Screenshots
It does'nt say anything in console.
Other
Yeah. My friend tried loading it with his version of skript for 1.8 "Skript 2.2-dev36.jar" and it worked without problem. As you should be able to figure out the way i use skript did'nt get outdated and should still be valid between v2.2 and v2.6.4 that yours is based on. :D
Hope to hear if you got any updates on this.
Agreement