Version Stuff.

  • 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 comminuty!

    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.

BrettPlayMC

Supporter
Jan 26, 2017
715
53
28
SkUnity Street
Skript Version: Skript 2.2 (dev25) (Upgrading to latest soon)
Skript Author: Bensku
Minecraft Version: 1.8

Full Code:
code_language.skript:
on join:
    if player's minecraft version is "1.9":
        send "You're joining with version %mc version of player%!"
        set {version::%uuid of player%} to "1.9"
on load:
    if "%server's version%" is "1.8":
        set {serverversion} to "1.8"

Errors on Reload:
code_language.skript:
[14:01:05] [Server thread/ERROR]: Can't compare 'player's minecraft version' with a text (updateyourclient.sk, line 2: if player's minecraft version is "1.9":')
[14:01:05] [Server thread/ERROR]: Can't understand this expression: server's version (updateyourclient.sk, line 6: if "%server's version%" is "1.8":')


Addons using (including versions):
Tuske, skutilities

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? Changing the syntax's.
 
If you use protocolsupport use somewhat like this:

code_language.skript:
set {_version.%player%} to player's protocol version
    if "%{_version.%player%}%" contains "8":

etc
 
skript-mirror, mundosk + plib or tuske and protocolsupport can do this
 
Status
Not open for further replies.