Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Error #122

Closed
Croeder77 opened this issue May 12, 2013 · 9 comments
Closed

Internal Error #122

Croeder77 opened this issue May 12, 2013 · 9 comments

Comments

@Croeder77
Copy link

Hello, I have been having a problem with BattleKits recently. Every time I do a command by battlekits, it says:

An internal error occurred while attempting to form this command

I know the problem, well a little part of it. Whenever I reset my kit config, everything works fine. So I know I did something wrong with my kit config.

Here is my kit config: http://pastebin.com/kF19ecsR

Does anybody know how to fix this?

@np98765
Copy link
Owner

np98765 commented May 13, 2013

Just from taking a quick glance at your config, I noticed that you haven't wrapped slot 0 in the archer kit and the knight kit in single quotes.

Change that and re-test, then let me know your results!

@lol768
Copy link
Collaborator

lol768 commented May 13, 2013

Not following #1

@Croeder77
Copy link
Author

np98765, I have fixed the issue that you noticed, and completely restarted the server. It appears that there is still an internal error when I try performing the commands. I will continue my search for the problem.

@lol768
Copy link
Collaborator

lol768 commented May 14, 2013

What's the new error in the console?

@Croeder77
Copy link
Author

org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
14.05 14:38:50 [Server] INFO at com.lavacraftserver.BattleKits.CommandBattleKits.onCommand(CommandBattleKits.java:52)
14.05 14:38:50 [Server] INFO Caused by: java.lang.NullPointerException
14.05 14:38:50 [Server] INFO at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
14.05 14:38:50 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410)
14.05 14:38:50 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477)
14.05 14:38:50 [Server] INFO at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226)
14.05 14:38:50 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581)
14.05 14:38:50 [Server] INFO at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30)
14.05 14:38:50 [Server] INFO at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
14.05 14:38:50 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109)

^^
Those are some errors & stuff in the console that I found when trying the command /bk, /kits, etc.

@lol768
Copy link
Collaborator

lol768 commented May 15, 2013

You cannot do this:
Issue
(Use double quotes for the outside, and signle or the inside.)

Issue
(The right-hand-side must be wrapped in single quotes)

Issue
(Same problem)

Potential issues:
Ideally all text should be wrapped in single quotes, e.g.
Potential issue

Should be:
Fixed

Once you think you've fixed these issues, use this tool to check your config file (just paste it in).

@Croeder77
Copy link
Author

Alright, thank you guys SO much! I have fixed it, and I found another problem that wasn't detected:

When I named the bow in the archer kit as: '&cArcher's Bow', I realized that I couldn't have the ', because it ruins the coding, and thinks you're trying to do something else, other than naming something.

@lol768
Copy link
Collaborator

lol768 commented May 17, 2013

Good catch, yeah. You'll need to escape single quotes with a backslash,

'Archer's Bow'

@lol768
Copy link
Collaborator

lol768 commented Jun 2, 2013

Seems all sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants