alias dont work on spigot
LadyCailinBot opened this issue · 5 comments
CMDHELPER-2895 - Reported by sat
i use a last spigo, and the last commandhelper
on lauch i have thi error
[12:06:11] [Server thread/INFO]: CommandHelper: Welcome to this server, which is running CommandHelper!
[12:06:11] [Server thread/INFO]: �[33m[CommandHelper]: MethodScript files processed�[0m
[12:06:11] [Server thread/WARN]: java.lang.ArrayIndexOutOfBoundsException: -1
[12:06:11] [Server thread/WARN]: at java.util.ArrayList.elementData(ArrayList.java:371)
[12:06:11] [Server thread/WARN]: at java.util.ArrayList.get(ArrayList.java:384)
[12:06:11] [Server thread/WARN]: at com.laytonsmith.core.MethodScriptCompiler.preprocess(MethodScriptCompiler.java:823)
[12:06:11] [Server thread/WARN]: at com.laytonsmith.core.AliasCore$LocalPackage.compileMSA(AliasCore.java:649)
[12:06:11] [Server thread/WARN]: at com.laytonsmith.core.AliasCore.reload(AliasCore.java:475)
[12:06:11] [Server thread/WARN]: at com.laytonsmith.commandhelper.CommandHelperPlugin.onEnable(CommandHelperPlugin.java:313)
[12:06:11] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250)
[12:06:11] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:350)
[12:06:11] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:385)
[12:06:11] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:304)
[12:06:11] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:286)
[12:06:11] [Server thread/WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:348)
[12:06:11] [Server thread/WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:325)
[12:06:11] [Server thread/WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:281)
[12:06:11] [Server thread/WARN]: at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:186)
[12:06:11] [Server thread/WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:430)
[12:06:11] [Server thread/WARN]: at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617)
[12:06:11] [Server thread/INFO]: [CraftBook] Enabling CraftBook v3.8-SNAPSHOT:3555-7ab7624,master
script in main.ms work
alias in config doesn't work
thanks
Comment by EntityReborn
Please remove any whitespace or "Comment banners" from the top of your config.txt/aliases.msa files, including in your LocalPackages folder. This is a known bug.
Comment by sat
i found it.
thanks, that close, and work fine.
a script error, for an occur reason in a new version, all alias are broken.
i remake all, and now all work fine.
i dont think what, but i total rework any of my alias whit new fonction.
(sorry for my bad english)
Comment by LadyCailin
This shouldn't cause an issue, so the bug will stay open. Comments should be allowed outside of aliases. I'll work on this feature a bit more to refine it.
Comment by LadyCailin
I couldn't duplicate this issue, can you give me a sample script that actually does reproduce the issue?