Skip to content

Commit

Permalink
Fix command registration on Windows servers
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoKah committed Aug 23, 2017
1 parent fdb6590 commit 78dc573
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private static void createCmds(CommandSpec.Builder cmd, String path)
{
path = path.concat(".");
try {
JarFile jarFile = new JarFile(NationsPlugin.class.getProtectionDomain().getCodeSource().getLocation().toString().split("!")[0].split(":")[2]);
JarFile jarFile = new JarFile(NationsPlugin.class.getProtectionDomain().getCodeSource().getLocation().toString().split("!")[0].replaceFirst("jar:file:", ""));
Enumeration<JarEntry> entries = jarFile.entries();
while (entries.hasMoreElements())
{
Expand Down

0 comments on commit 78dc573

Please sign in to comment.