Rcon console execute console command skript

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

joseplmartins

Member
May 2, 2020
1
0
1
Hello, I am having an issue with my skript, I'm trying to execute a command by typing it on rcon console of my server but it gives me an error:
Code:
[14:06:12 WARN]: Unexpected exception while parsing console command "alertavip batman137 acabou de comprar classe tokens!"
java.lang.NullPointerException
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152) ~[paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:666) ~[paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:629) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.DedicatedServer$5.evaluate(DedicatedServer.java:654) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.DedicatedServer$5.evaluate(DedicatedServer.java:1) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at org.bukkit.craftbukkit.v1_8_R3.util.Waitable.run(Waitable.java:24) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:789) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
In the normal server console, I can execute this command!

Skript code:
Code:
command /alertavip [<text>]:
    executable by: console
    trigger:
        if command sender is console:
            broadcast "&d&lCOMPRA&f» &e&l%arg-1%"

What can I do?
 
Hello, I am having an issue with my skript, I'm trying to execute a command by typing it on rcon console of my server but it gives me an error:
Code:
[14:06:12 WARN]: Unexpected exception while parsing console command "alertavip batman137 acabou de comprar classe tokens!"
java.lang.NullPointerException
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152) ~[paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:666) ~[paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:629) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.DedicatedServer$5.evaluate(DedicatedServer.java:654) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.DedicatedServer$5.evaluate(DedicatedServer.java:1) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at org.bukkit.craftbukkit.v1_8_R3.util.Waitable.run(Waitable.java:24) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:789) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [paperspigot.jar:git-PaperSpigot-"4c7641d"]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
In the normal server console, I can execute this command!

Skript code:
Code:
command /alertavip [<text>]:
    executable by: console
    trigger:
        if command sender is console:
            broadcast "&d&lCOMPRA&f» &e&l%arg-1%"

What can I do?
When I ran the script there were no errors...
improved it a little
Code:
command /alertavip [<text>]:
  executable by: console
  trigger:
    if arg-1 is not set:
      send "&eUsage: &d/alertavip &f<message>"
    else:
      broadcast "&d&lCOMPRA&f » &e&l%arg-1%"

what version are you using? bc im a little confused of this error, first it mentions bukkit, then it mentions paper... idk

soooo what version are you using? 1.8? 1.16?
 
I'm pretty sure this guy is using 1.8, maybe running commands from rcon isn't supported?
 
Last edited:
Status
Not open for further replies.