What's the problem here?

  • 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.

ofekassiag

Member
Apr 24, 2019
25
0
1
58
What's the problem here?

Code:
command /online [<text>]:
    trigger:
        set {_player} to 0
        loop all players:
            add 1 to {_ingame}
        wait 0.1 second
        open chest with 6 rows named "&b%{_ingame}% &eplayers in the server!" to player
        loop all players:
            format slot {_player} of player with loop-player's skull named "&c&l%loop-player%" with lore "&7&m---------------||&e&lPLAYER INFO||||&e&lMONEY &8&l» &f%loop-player's balance%||&e&lLEVEL &8&l» &f%loop-player's level%||&7&m----------------" to close then run [player command "/optionss"]   
            add 1 to {_player}
 
Try
Code:
to close then run [make player execute command "/optionss"]
 
Do you have SkQuery? (PS I recommend using TuSKe for GUIs, it has less bugs)
 
And do you get any console errors (during startup or parsing)
 
And do you get any console errors (during startup or parsing)
This is my last console log.
Code:
Loading libraries, please wait...
[11:24:25 INFO]: Starting minecraft server version 1.8.8
[11:24:25 INFO]: Loading properties
[11:24:25 INFO]: Default game type: SURVIVAL
[11:24:26 INFO]: This server is running CraftBukkit version git-Spigot-db6de12-18fbb24 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
[11:24:26 INFO]: Debug logging is disabled
[11:24:26 INFO]: Server Ping Player Sample Count: 12
[11:24:26 INFO]: Using 4 threads for Netty based IO
[11:24:26 INFO]: Generating keypair
[11:24:28 INFO]: Starting Minecraft server on *:25565
[11:24:28 INFO]: Using default channel type
[11:24:28 INFO]: Set PluginClassLoader as parallel capable
[11:24:28 INFO]: [Skript] Loading Skript v2.1.2
[11:24:28 INFO]: [marCloudLogin] Loading marCloudLogin v1.5
[11:24:28 INFO]: [Vault] Loading Vault v1.7.1-b91
[11:24:28 INFO]: [ProtocolLib] Loading ProtocolLib v4.4.0
[11:24:29 INFO]: [SkQuery] Loading SkQuery v3.21.4
[11:24:29 INFO]: [TuSKe] Loading TuSKe v1.8.2
[11:24:29 INFO]: [Vault] Enabling Vault v1.7.1-b91
[11:24:29 INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[11:24:29 INFO]: [Vault] Enabled Version 1.7.1-b91
[11:24:29 INFO]: [ProtocolLib] Enabling ProtocolLib v4.4.0
[11:24:29 INFO]: [ProtocolLib] Started structure compiler thread.
[11:24:29 INFO]: **** Beginning UUID conversion, this may take A LONG time ****
[11:24:29 INFO]: Preparing level "world"
[11:24:29 INFO]: -------- World Settings For [world] --------
[11:24:29 INFO]: Zombie Aggressive Towards Villager: true
[11:24:29 INFO]: Item Despawn Rate: 6000
[11:24:29 INFO]: Item Merge Radius: 2.5
[11:24:29 INFO]: Arrow Despawn Rate: 1200
[11:24:29 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[11:24:29 INFO]: View Distance: 10
[11:24:29 INFO]: Experience Merge Radius: 3.0
[11:24:29 INFO]: Chunks to Grow per Tick: 650
[11:24:29 INFO]: Clear tick list: false
[11:24:29 INFO]: Max Entity Collisions: 8
[11:24:29 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
[11:24:29 INFO]: Anti X-Ray: true
[11:24:29 INFO]:        Engine Mode: 1
[11:24:29 INFO]:        Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
[11:24:29 INFO]:        Replace Blocks: [1, 5]
[11:24:29 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
[11:24:29 INFO]: Structure Info Saving: true
[11:24:29 INFO]: Nerfing mobs spawned from spawners: false
[11:24:29 INFO]: Cactus Growth Modifier: 100%
[11:24:29 INFO]: Cane Growth Modifier: 100%
[11:24:29 INFO]: Melon Growth Modifier: 100%
[11:24:29 INFO]: Mushroom Growth Modifier: 100%
[11:24:29 INFO]: Pumpkin Growth Modifier: 100%
[11:24:29 INFO]: Sapling Growth Modifier: 100%
[11:24:29 INFO]: Wheat Growth Modifier: 100%
[11:24:29 INFO]: NetherWart Growth Modifier: 100%
[11:24:29 INFO]: Random Lighting Updates: false
[11:24:29 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[11:24:29 INFO]: Mob Spawn Range: 4
[11:24:29 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[11:24:29 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[11:24:29 INFO]: Sending up to 10 chunks per packet
[11:24:29 INFO]: Max TNT Explosions: 100
[11:24:30 INFO]: -------- World Settings For [world_nether] --------
[11:24:30 INFO]: Zombie Aggressive Towards Villager: true
[11:24:30 INFO]: Item Despawn Rate: 6000
[11:24:30 INFO]: Item Merge Radius: 2.5
[11:24:30 INFO]: Arrow Despawn Rate: 1200
[11:24:30 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[11:24:30 INFO]: View Distance: 10
[11:24:30 INFO]: Experience Merge Radius: 3.0
[11:24:30 INFO]: Chunks to Grow per Tick: 650
[11:24:30 INFO]: Clear tick list: false
[11:24:30 INFO]: Max Entity Collisions: 8
[11:24:30 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
[11:24:30 INFO]: Anti X-Ray: true
[11:24:30 INFO]:        Engine Mode: 1
[11:24:30 INFO]:        Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
[11:24:30 INFO]:        Replace Blocks: [1, 5]
[11:24:30 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
[11:24:30 INFO]: Structure Info Saving: true
[11:24:30 INFO]: Nerfing mobs spawned from spawners: false
[11:24:30 INFO]: Cactus Growth Modifier: 100%
[11:24:30 INFO]: Cane Growth Modifier: 100%
[11:24:30 INFO]: Melon Growth Modifier: 100%
[11:24:30 INFO]: Mushroom Growth Modifier: 100%
[11:24:30 INFO]: Pumpkin Growth Modifier: 100%
[11:24:30 INFO]: Sapling Growth Modifier: 100%
[11:24:30 INFO]: Wheat Growth Modifier: 100%
[11:24:30 INFO]: NetherWart Growth Modifier: 100%
[11:24:30 INFO]: Random Lighting Updates: false
[11:24:30 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[11:24:30 INFO]: Mob Spawn Range: 4
[11:24:30 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[11:24:30 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[11:24:30 INFO]: Sending up to 10 chunks per packet
[11:24:30 INFO]: Max TNT Explosions: 100
[11:24:30 INFO]: -------- World Settings For [world_the_end] --------
[11:24:30 INFO]: Zombie Aggressive Towards Villager: true
[11:24:30 INFO]: Item Despawn Rate: 6000
[11:24:30 INFO]: Item Merge Radius: 2.5
[11:24:30 INFO]: Arrow Despawn Rate: 1200
[11:24:30 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[11:24:30 INFO]: View Distance: 10
[11:24:30 INFO]: Experience Merge Radius: 3.0
[11:24:30 INFO]: Chunks to Grow per Tick: 650
[11:24:30 INFO]: Clear tick list: false
[11:24:30 INFO]: Max Entity Collisions: 8
[11:24:30 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
[11:24:30 INFO]: Anti X-Ray: true
[11:24:30 INFO]:        Engine Mode: 1
[11:24:30 INFO]:        Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
[11:24:30 INFO]:        Replace Blocks: [1, 5]
[11:24:30 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
[11:24:30 INFO]: Structure Info Saving: true
[11:24:30 INFO]: Nerfing mobs spawned from spawners: false
[11:24:30 INFO]: Cactus Growth Modifier: 100%
[11:24:30 INFO]: Cane Growth Modifier: 100%
[11:24:30 INFO]: Melon Growth Modifier: 100%
[11:24:30 INFO]: Mushroom Growth Modifier: 100%
[11:24:30 INFO]: Pumpkin Growth Modifier: 100%
[11:24:30 INFO]: Sapling Growth Modifier: 100%
[11:24:30 INFO]: Wheat Growth Modifier: 100%
[11:24:30 INFO]: NetherWart Growth Modifier: 100%
[11:24:30 INFO]: Random Lighting Updates: false
[11:24:30 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[11:24:30 INFO]: Mob Spawn Range: 4
[11:24:30 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[11:24:30 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[11:24:30 INFO]: Sending up to 10 chunks per packet
[11:24:30 INFO]: Max TNT Explosions: 100
[11:24:30 INFO]: Preparing start region for level 0 (Seed: 3576382321382198322)
[11:24:31 INFO]: Preparing spawn area: 20%
[11:24:32 INFO]: Preparing spawn area: 56%
[11:24:33 INFO]: Preparing start region for level 1 (Seed: -569586207010674468)
[11:24:34 INFO]: Preparing spawn area: 34%
[11:24:35 INFO]: Preparing spawn area: 73%
[11:24:35 INFO]: Preparing start region for level 2 (Seed: -569586207010674468)
[11:24:36 INFO]: [Skript] Enabling Skript v2.1.2
[11:24:37 INFO]: [Skript] Loaded a total of 11504 english aliases
[11:24:37 WARN]: [Skript] There are no aliases defined for the following ids: 165, 166, 167, 168, 169, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 409, 410, 411, 412, 413, 414, 415, 416, 423, 424, 425, 427, 428, 429, 430, 431
[11:24:37 INFO]: [Skript]  ~ created by & ⌐ Peter G?ttinger aka Njol ~
[11:24:37 INFO]: [marCloudLogin] Enabling marCloudLogin v1.5
[11:24:37 INFO]: [SkQuery] Enabling SkQuery v3.21.4
[11:24:37 INFO]: [skQuery] Snooping enabled from com.w00tmast3r.skquery.SkQuery
[11:24:37 INFO]: [skQuery] Locating classes from SkQuery...
[11:24:37 INFO]: [skQuery] Finished snooping of SkQuery with 163 classes.
[11:24:37 INFO]: [skQuery] Beginning to process a total of 163 from SkQuery
[11:24:37 INFO]: [skQuery] Out of 163 classes, 160 classes were loaded from SkQuery
[11:24:37 INFO]: [TuSKe] Enabling TuSKe v1.8.2
[11:24:37 ERROR]: Error occurred while enabling TuSKe v1.8.2 (Is it up to date?)
java.lang.NoSuchMethodError: ch.njol.skript.bukkitutil.PlayerUtils.getOnlinePlayers()Ljava/util/Collection;
        at com.github.tukenuke.tuske.listeners.OnlineStatusCheck.<init>(OnlineStatusCheck.java:23) ~[?:?]
        at com.github.tukenuke.tuske.TuSKe.onEnable(TuSKe.java:73) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [server.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [server.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [server.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [server.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [server.jar:git-Spigot-db6de12-18fbb24]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
[11:24:37 INFO]: Server permissions file permissions.yml is empty, ignoring it
[11:24:37 INFO]: Done (8.149s)! For help, type "help" or "?"
[11:24:37 ERROR]: [Skript] Could not hook into Vault. This can happen if Skript doesn't support the installed version of Vault
[11:24:38 ERROR]: [Skript] '"/optionss"]' is not a text (1.sk, line 9: format slot {_player} of player with loop-player's skull named "&c&l%loop-player%" with lore "&7&m---------------||&e&lPLAYER INFO||||&e&lMONEY &8&l╗ &f%loop-player's balance%||&e&lLEVEL &8&l╗ &f%loop-player's level%||&7&m----------------" to close then run [make player execute command "/optionss"]')
[11:24:42 INFO]: [Skript] Loaded 4 scripts with a total of 8 triggers and 7 commands in 4.07 seconds
[11:24:42 INFO]: [Skript] Finished loading.
[11:24:42 INFO]: [HorizonTools] HorizonTools v1.0 was loaded
[11:24:42 INFO]: [Skript] Checking for the latest version of Skript...
[11:24:42 INFO]: [Vault] Checking for Updates ...
[11:24:44 INFO]: [Vault] No new version available
[11:24:44 INFO]: [Skript] You're currently running the latest stable version of Skript.
>
 
Did you mean to make the command /optionss and not /options? (with 2 times letter "s") maybe thats why its not executing the command because it doesn't exist.
 
Try to use TuSKe GUIs, they're easier and have less bugs
 
If you do "loop all players"
you cant do "loop-player's skull" because its not only 1 person
 
What's the problem here?

Code:
command /online [<text>]:
    trigger:
        set {_player} to 0
        loop all players:
            add 1 to {_ingame}
        wait 0.1 second
        open chest with 6 rows named "&b%{_ingame}% &eplayers in the server!" to player
        loop all players:
            format slot {_player} of player with loop-player's skull named "&c&l%loop-player%" with lore "&7&m---------------||&e&lPLAYER INFO||||&e&lMONEY &8&l» &f%loop-player's balance%||&e&lLEVEL &8&l» &f%loop-player's level%||&7&m----------------" to close then run [player command "/optionss"]
            add 1 to {_player}
Please, do not use the SkQuery GUIs, replace it for the TuSKe GUIs.
and try something like this:
code_language.skript:
command /online [<text>]:
    trigger:
        set {_onlineplayers} to 0
        loop all players:
            add 1 to {_ingame}
        wait 0.1 second
        open chest with 6 rows named "&b%{_ingame}%&e players in the server!" to player
        loop all players:
            set {_loop.skulls} to loop-player's skull named "&c&l%loop-player%"
            set line 1 of lore of {_loop.skulls} to "&7&m---------------"
            set line 2 of lore of {_loop.skulls} to "&e&lPLAYER INFO"
            set line 4 of lore of {_loop.skulls} to "&e&lMONEY &8&l» &f%loop-player's balance%"
            set line 5 of lore of {_loop.skulls} to "&e&lLEVEL &8&l» &f%loop-player's level%"
            set line 6 of lore of {_loop.skulls} to "&7&m----------------"
            format a gui slot {_onlineplayers} of player with {_loop.skulls} to close:
                execute player command "/optionss"
            add 1 to {_onlineplayers}
 
Last edited:
Status
Not open for further replies.