Solved CommandSpy doesn't working...

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

PuchiGFX

Member
Jan 26, 2017
246
5
18
Few days ago i made a commandspy, the Problem is that this commandspy doesn't detect the commands from skript plugins...
I you don't understand me here's a picture:
http://prntscr.com/jg8nlt
My code:
code_language.skript:
On command:
    sender is a player
    if arguments are set:
        loop all players:
            if loop-player have permission "visceux.helper":
                {cs.%uuid of loop-player%} is set
                json("%loop-player%", "%coloured first 2 characters of player's prefix%%player%&e: ||&e/%command% %arguments%||sgt:/%command% %arguments%||ttp:&eClick para ejecutar el comando.")
Using spigot 1.8.8 & skript dev 25
 
Few days ago i made a commandspy, the Problem is that this commandspy doesn't detect the commands from skript plugins...
I you don't understand me here's a picture:
http://prntscr.com/jg8nlt
My code:
code_language.skript:
On command:
    sender is a player
    if arguments are set:
        loop all players:
            if loop-player have permission "visceux.helper":
                {cs.%uuid of loop-player%} is set
                json("%loop-player%", "%coloured first 2 characters of player's prefix%%player%&e: ||&e/%command% %arguments%||sgt:/%command% %arguments%||ttp:&eClick para ejecutar el comando.")
Using spigot 1.8.8 & skript dev 25
code_language.skript:
on command:
    if sender is a player:
        loop all players:
            if "%player%" is not "%loop-player%":
                send "&7&l(!) %player% executed : &n/%complete command%" to loop-player
I think you need SkUtilities.
 
code_language.skript:
on command:
    if sender is a player:
        loop all players:
            if "%player%" is not "%loop-player%":
                send "&7&l(!) %player% executed : &n/%complete command%" to loop-player
I think you need SkUtilities.
Skript commands still not working...
 
What didn't work?
[doublepost=1525978928,1525978824][/doublepost]
Try using Paperspigot instead of the normal spigot.
This...
code_language.skript:
[21:01:51 INFO]: PuchiGFX issued server command: /cs
[21:01:51 ERROR]: Could not pass event PlayerCommandPreprocessEvent to Skript v2.2-dev35b
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
Caused by: java.lang.NoSuchMethodError: net.md_5.bungee.api.chat.BaseComponent.setInsertion(Ljava/lang/String;)V
    at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:45) ~[?:?]
    at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:60) ~[?:?]
    at ch.njol.skript.effects.EffMessage.execute(EffMessage.java:88) ~[?:?]
    at ch.njol.skript.lang.Effect.run(Effect.java:52) ~[?:?]
    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) ~[?:?]
    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) ~[?:?]
    at ch.njol.skript.lang.Trigger.execute(Trigger.java:55) ~[?:?]
    at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:279) ~[?:?]
    at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:236) ~[?:?]
    at ch.njol.skript.command.Commands.handleCommand(Commands.java:255) ~[?:?]
    at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:170) ~[?:?]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    ... 16 more
[21:01:51 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'cs' in plugin Skript v2.2-dev35b
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
Caused by: java.lang.NoSuchMethodError: net.md_5.bungee.api.chat.BaseComponent.setInsertion(Ljava/lang/String;)V
    at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:45) ~[?:?]
    at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:60) ~[?:?]
    at ch.njol.skript.effects.EffMessage.execute(EffMessage.java:88) ~[?:?]
    at ch.njol.skript.lang.Effect.run(Effect.java:52) ~[?:?]
    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) ~[?:?]
    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) ~[?:?]
    at ch.njol.skript.lang.Trigger.execute(Trigger.java:55) ~[?:?]
    at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:279) ~[?:?]
    at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:236) ~[?:?]
    at ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:187) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    ... 15 more
 
This...
code_language.skript:
[21:01:51 INFO]: PuchiGFX issued server command: /cs
[21:01:51 ERROR]: Could not pass event PlayerCommandPreprocessEvent to Skript v2.2-dev35b
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
Caused by: java.lang.NoSuchMethodError: net.md_5.bungee.api.chat.BaseComponent.setInsertion(Ljava/lang/String;)V
    at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:45) ~[?:?]
    at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:60) ~[?:?]
    at ch.njol.skript.effects.EffMessage.execute(EffMessage.java:88) ~[?:?]
    at ch.njol.skript.lang.Effect.run(Effect.java:52) ~[?:?]
    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) ~[?:?]
    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) ~[?:?]
    at ch.njol.skript.lang.Trigger.execute(Trigger.java:55) ~[?:?]
    at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:279) ~[?:?]
    at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:236) ~[?:?]
    at ch.njol.skript.command.Commands.handleCommand(Commands.java:255) ~[?:?]
    at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:170) ~[?:?]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    ... 16 more
[21:01:51 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'cs' in plugin Skript v2.2-dev35b
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
Caused by: java.lang.NoSuchMethodError: net.md_5.bungee.api.chat.BaseComponent.setInsertion(Ljava/lang/String;)V
    at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:45) ~[?:?]
    at ch.njol.skript.util.chat.BungeeConverter.convert(BungeeConverter.java:60) ~[?:?]
    at ch.njol.skript.effects.EffMessage.execute(EffMessage.java:88) ~[?:?]
    at ch.njol.skript.lang.Effect.run(Effect.java:52) ~[?:?]
    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) ~[?:?]
    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) ~[?:?]
    at ch.njol.skript.lang.Trigger.execute(Trigger.java:55) ~[?:?]
    at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:279) ~[?:?]
    at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:236) ~[?:?]
    at ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:187) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    ... 15 more
Can you send me your skript where you coded the command "/cs"
 
Can you send me your skript where you coded the command "/cs"
p
What didn't work?
[doublepost=1525978928,1525978824][/doublepost]
Try using Paperspigot instead of the normal spigot.
I can't use paperspigot, don't load my 50% of plugins
[doublepost=1525979361][/doublepost]
Can you send me your skript where you coded the command "/cs"
code_language.skript:
on join:
    {cs.%uuid of player%} is set
    delete {cs.%uuid of player%}

command /cs:
    aliases: /commandspy
    permission: visceux.helper
    permission message: &cNo tienes permiso para esto.
    trigger:
        if {cs.%uuid of player%} is not set:
            set {cs.%uuid of player%} to true
            send "&aTe has activado el &ncommandspy&a."
            stop
        delete {cs.%uuid of player%}
        send "&cTe has desactivado el &ncommandspy&c."

On command:
    sender is a player
    loop all players:
        if loop-player have permission "visceux.helper":
            {cs.%uuid of loop-player%} is set
            json("%loop-player%", "%coloured first 2 characters of player's prefix%%player%&e: ||&e/%complete command%||sgt:/%complete command%||ttp:&eClick para ejecutar el comando.")
 
p

I can't use paperspigot, don't load my 50% of plugins
[doublepost=1525979361][/doublepost]
code_language.skript:
on join:
    {cs.%uuid of player%} is set
    delete {cs.%uuid of player%}

command /cs:
    aliases: /commandspy
    permission: visceux.helper
    permission message: &cNo tienes permiso para esto.
    trigger:
        if {cs.%uuid of player%} is not set:
            set {cs.%uuid of player%} to true
            send "&aTe has activado el &ncommandspy&a."
            stop
        delete {cs.%uuid of player%}
        send "&cTe has desactivado el &ncommandspy&c."

On command:
    sender is a player
    loop all players:
        if loop-player have permission "visceux.helper":
            {cs.%uuid of loop-player%} is set
            json("%loop-player%", "%coloured first 2 characters of player's prefix%%player%&e: ||&e/%complete command%||sgt:/%complete command%||ttp:&eClick para ejecutar el comando.")
Sorry, I don't know why it doesn't know.
 
btw ty for trying
Which Addons have you installed? (And which version)
[doublepost=1525980023,1525979540][/doublepost]
p

I can't use paperspigot, don't load my 50% of plugins
[doublepost=1525979361][/doublepost]
code_language.skript:
on join:
    {cs.%uuid of player%} is set
    delete {cs.%uuid of player%}

command /cs:
    aliases: /commandspy
    permission: visceux.helper
    permission message: &cNo tienes permiso para esto.
    trigger:
        if {cs.%uuid of player%} is not set:
            set {cs.%uuid of player%} to true
            send "&aTe has activado el &ncommandspy&a."
            stop
        delete {cs.%uuid of player%}
        send "&cTe has desactivado el &ncommandspy&c."

On command:
    sender is a player
    loop all players:
        if loop-player have permission "visceux.helper":
            {cs.%uuid of loop-player%} is set
            json("%loop-player%", "%coloured first 2 characters of player's prefix%%player%&e: ||&e/%complete command%||sgt:/%complete command%||ttp:&eClick para ejecutar el comando.")
,aybe try removing the "stop" part
 
Which Addons have you installed? (And which version)
MundoSk (1.7.5-BETA.10.8), reqn (1.2.1), SharpSK (1.6.3), skellett (1.9.6b), SkQueryLime (3.6.0), Skrayfall (1.9.12), skript-json (1.1.1), skript-mirror (0.12.1), skUtilities (0.9.2), Tuske (1.8.2) and WildSkript (1.8)
[doublepost=1525980137,1525980103][/doublepost]
Which Addons have you installed? (And which version)
[doublepost=1525980023,1525979540][/doublepost]
,aybe try removing the "stop" part
No because it doesn't work for ONLY skript commands
 
MundoSk (1.7.5-BETA.10.8), reqn (1.2.1), SharpSK (1.6.3), skellett (1.9.6b), SkQueryLime (3.6.0), Skrayfall (1.9.12), skript-json (1.1.1), skript-mirror (0.12.1), skUtilities (0.9.2), Tuske (1.8.2) and WildSkript (1.8)
[doublepost=1525980137,1525980103][/doublepost]
No because it doesn't work for ONLY skript commands
then i really dont know sorry
 
code_language.skript:
command /commandspy:
    aliases: /commands, /cspy
    permission: chat.staff
    permission message: &7You do not have access to that command.
    trigger:
        if {cs::%uuid of player%} is set:
            clear {cs::%uuid of player%}
            send "&8[&7CommandSpy&8] &cTurned command spy off!"
        else:
            set {cs::%uuid of player%} to true
            send "&8[&7CommandSpy&8] &aTurned command spy on!"
on command:
    if sender is a player:
        loop all players:
            if {cs::%uuid of loop-player%} is set:
                if "%player%" is not "%loop-player%":
                    send "&8[&7CommandSpy&8] &7%player%: /%complete command%" to loop-player
on quit:
    delete {cs::%uuid of player%}
 
code_language.skript:
command /commandspy:
    aliases: /commands, /cspy
    permission: chat.staff
    permission message: &7You do not have access to that command.
    trigger:
        if {cs::%uuid of player%} is set:
            clear {cs::%uuid of player%}
            send "&8[&7CommandSpy&8] &cTurned command spy off!"
        else:
            set {cs::%uuid of player%} to true
            send "&8[&7CommandSpy&8] &aTurned command spy on!"
on command:
    if sender is a player:
        loop all players:
            if {cs::%uuid of loop-player%} is set:
                if "%player%" is not "%loop-player%":
                    send "&8[&7CommandSpy&8] &7%player%: /%complete command%" to loop-player
on quit:
    delete {cs::%uuid of player%}
My code works fine... the problem is that my commandspy doesn't recognise the commands from skript, except that everything's good.
 
Status
Not open for further replies.