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

/dxl msg -- internal error #144

Closed
wysohn opened this issue Sep 2, 2016 · 5 comments
Closed

/dxl msg -- internal error #144

wysohn opened this issue Sep 2, 2016 · 5 comments
Assignees
Milestone

Comments

@wysohn
Copy link
Contributor

wysohn commented Sep 2, 2016

/dxl msg

simply throw exception

[17:00:08] [Server thread/INFO]: test23 issued server command: /dxl msg 1 "test"
[17:00:08] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'dxl' in plugin DungeonsXL v0.14.4
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:646) ~[spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1351) [spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1186) [spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_77]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_77]
at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:737) [spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:673) [spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:572) [spigot-1.10.2.jar:git-Spigot-9797151-301db84]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_77]
Caused by: java.lang.NullPointerException
at io.github.dre2n.dungeonsxl.command.MsgCommand.onExecute(MsgCommand.java:90) ~[?:?]
at io.github.dre2n.dungeonsxl.util.commons.command.BRCommandExecutor.onCommand(BRCommandExecutor.java:71) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.10.2.jar:git-Spigot-9797151-301db84]

@wysohn
Copy link
Contributor Author

wysohn commented Sep 2, 2016

DResourceWorld.java

at line 56

File configFile = new File(folder, "config.yml");
if (configFile.exists()) {
config = new WorldConfig(configFile);
}

it seems the newly created map will never generate the default config.yml?

or do I have to make my own config.yml manually everytime?

where is the example if that's the case?

@wysohn
Copy link
Contributor Author

wysohn commented Sep 2, 2016

opps just found an example in the wiki

sorry :/

but it could be really nice if default yml will be generated

@Sataniel98
Copy link
Member

Maps don't generate config files because maps don't need config files. All information can be fetched from other sources as well, like the default and override values in the dungeon config or the default values in the main config. Does the error occur with latest builds, too?

@wysohn
Copy link
Contributor Author

wysohn commented Sep 2, 2016

I'm using v0.14.4 and doubt if it's the latest version

the error occurs if there is no config.yml file

@Sataniel98
Copy link
Member

Fixed it, thank you for the report!
Can't sync at the moment because of connection issues, though :C

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

No branches or pull requests

2 participants