vrrdnt
Full Member
Posts: 106
| Likes: 88
|
Post by vrrdnt on Mar 25, 2018 1:51:44 GMT
i've been working on an edit of TFM for a while now, but every time i try to actually use the plugin in a server i get the following error: [18:45:40] [Server thread/ERROR]: Could not load 'plugins\delta-core.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:152) ~[spigot.jar:git-Spigot-de459a2-51263e9] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot.jar:git-Spigot-de459a2-51263e9] at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugins(CraftServer.java:298) [spigot.jar:git-Spigot-de459a2-51263e9] at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:203) [spigot.jar:git-Spigot-de459a2-51263e9] at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:535) [spigot.jar:git-Spigot-de459a2-51263e9] at java.lang.Thread.run(Unknown Source) [?:1.8.0_162] Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
(delta-core.jar is the totalfreedommod.jar) i know i'm compiling it right, and my actual project has zero errors: any ideas as to what mistake i'm making? any help is appreciated
|
|
taah
Club 4000 Member
sick af
Posts: 4,778
| Likes: 2,850
|
Post by taah on Mar 25, 2018 2:50:22 GMT
when you compiled the jar, it didn't contain the plugin.yml, it's saying that it can't find it. you're using maven considering tfm is maven, so you go to the directory for it, go to src/main and make a new folder called "resources" and drop admins.yml, bans.yml, plugin.yml, etc. inside of there the folder should be located at src/main/resources
|
|
Lemon
Veteran Member
Insert status here.
Posts: 2,491
| Likes: 2,165
|
Post by Lemon on Mar 25, 2018 4:25:11 GMT
Show us your plugin.yml please
|
|
taah
Club 4000 Member
sick af
Posts: 4,778
| Likes: 2,850
|
Post by taah on Mar 25, 2018 4:26:09 GMT
|
|
Mafrans
Veteran Member
We assholes need to stick together, if you're a fellow asshole please pm me.
Posts: 1,760
| Likes: 1,703
|
Post by Mafrans on Mar 25, 2018 10:16:43 GMT
You are most likely compiling the project using Java and not Maven, which does some weird things with your embedded files. In order for it to work you will need to move all files in the "resources" package to the root package of your plugin.
In other terms, everything that is currently in the "resources" folder should be placed in the "src" folder (Named as "Source Files" in Netbeans)
|
|
vrrdnt
Full Member
Posts: 106
| Likes: 88
|
Post by vrrdnt on Mar 25, 2018 22:37:42 GMT
yes! i was using a java project instead of maven. that solved the plugin.yml error, though i have a new one. i've successfully compiled tfm for 1.12 and all that, though when it loads on the server, i get: [15:29:01] [Server thread/ERROR]: [TotalFreedomMod] Could not load build properties! Did you compile with Netbeans/ANT? [15:29:01] [Server thread/ERROR]: [TotalFreedomMod] null java.lang.NullPointerException: null at java.util.Properties$LineReader.readLine(Unknown Source) ~[?:1.8.0_162] at java.util.Properties.load0(Unknown Source) ~[?:1.8.0_162] at java.util.Properties.load(Unknown Source) ~[?:1.8.0_162] at me.totalfreedom.totalfreedommod.TotalFreedomMod$BuildProperties.load(TotalFreedomMod.java:265) [TotalFreedomMod.jar:?] at me.totalfreedom.totalfreedommod.TotalFreedomMod.load(TotalFreedomMod.java:117) [TotalFreedomMod.jar:?] at net.pravian.aero.plugin.AeroPlugin.onLoad(AeroPlugin.java:67) [aero-2.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:310) [spigot.jar:git-Spigot-c3093ef-aa25568] at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:205) [spigot.jar:git-Spigot-c3093ef-aa25568] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot.jar:git-Spigot-c3093ef-aa25568] at java.lang.Thread.run(Unknown Source) [?:1.8.0_162]
build.properties is in the right place, and it's all properly defined in pom.xml, so i'm not sure what could be causing this. i do notice, though, a line in the error has to do with aero. i also compiled that correctly, and it works. pom.xml: <!-- Antrun --> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions> <execution> <phase>initialize</phase> <configuration> <target> <propertyfile file="build.properties" comment="Build information. Edit this to your liking."> <entry key="buildAuthor" default="ArcticHumboldt" /> </propertyfile> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>
<!-- Properties --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>properties-maven-plugin</artifactId> <version>1.0.0</version> <executions> <execution> <phase>initialize</phase> <goals> <goal>read-project-properties</goal> </goals> <configuration> <files> <file>${basedir}/build.properties</file> </files> </configuration> </execution> </executions> </plugin>
build.properties: #maven.buildNumber.plugin properties file #Sun Mar 25 15:21:59 PDT 2018 buildAuthor=ArcticHumboldt buildNumber=4
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Mar 25, 2018 23:33:10 GMT
i've successfully compiled tfm for 1.12 and all that, though when it loads on the server, i get: [15:29:01] [Server thread/ERROR]: [TotalFreedomMod] Could not load build properties! Did you compile with Netbeans/ANT? [15:29:01] [Server thread/ERROR]: [TotalFreedomMod] null java.lang.NullPointerException: null at java.util.Properties$LineReader.readLine(Unknown Source) ~[?:1.8.0_162] at java.util.Properties.load0(Unknown Source) ~[?:1.8.0_162] at java.util.Properties.load(Unknown Source) ~[?:1.8.0_162] at me.totalfreedom.totalfreedommod.TotalFreedomMod$BuildProperties.load(TotalFreedomMod.java:265) [TotalFreedomMod.jar:?] at me.totalfreedom.totalfreedommod.TotalFreedomMod.load(TotalFreedomMod.java:117) [TotalFreedomMod.jar:?] at net.pravian.aero.plugin.AeroPlugin.onLoad(AeroPlugin.java:67) [aero-2.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:310) [spigot.jar:git-Spigot-c3093ef-aa25568] at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:205) [spigot.jar:git-Spigot-c3093ef-aa25568] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot.jar:git-Spigot-c3093ef-aa25568] at java.lang.Thread.run(Unknown Source) [?:1.8.0_162]
[...] Did you compile with Netbeans/ANT?
|
|
vrrdnt
Full Member
Posts: 106
| Likes: 88
|
Post by vrrdnt on Mar 26, 2018 0:31:29 GMT
i've successfully compiled tfm for 1.12 and all that, though when it loads on the server, i get: [15:29:01] [Server thread/ERROR]: [TotalFreedomMod] Could not load build properties! Did you compile with Netbeans/ANT? [15:29:01] [Server thread/ERROR]: [TotalFreedomMod] null java.lang.NullPointerException: null at java.util.Properties$LineReader.readLine(Unknown Source) ~[?:1.8.0_162] at java.util.Properties.load0(Unknown Source) ~[?:1.8.0_162] at java.util.Properties.load(Unknown Source) ~[?:1.8.0_162] at me.totalfreedom.totalfreedommod.TotalFreedomMod$BuildProperties.load(TotalFreedomMod.java:265) [TotalFreedomMod.jar:?] at me.totalfreedom.totalfreedommod.TotalFreedomMod.load(TotalFreedomMod.java:117) [TotalFreedomMod.jar:?] at net.pravian.aero.plugin.AeroPlugin.onLoad(AeroPlugin.java:67) [aero-2.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:310) [spigot.jar:git-Spigot-c3093ef-aa25568] at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:205) [spigot.jar:git-Spigot-c3093ef-aa25568] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot.jar:git-Spigot-c3093ef-aa25568] at java.lang.Thread.run(Unknown Source) [?:1.8.0_162]
[...] Did you compile with Netbeans/ANT? i did.
|
|
vrrdnt
Full Member
Posts: 106
| Likes: 88
|
Post by vrrdnt on Mar 26, 2018 1:15:20 GMT
i've found that if tfm and aero are the only two plugins, there's zero errors. it's when i add any others that these errors occur.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Mar 26, 2018 1:55:38 GMT
i've found that if tfm and aero are the only two plugins, there's zero errors. it's when i add any others that these errors occur. This shouldn't be the case, since TotalFreedomMod depends on WorldEdit (see here); and in many cases, you'll see something along the lines of this [see below] when starting w/o. org.bukkit.plugin.UnknownDependencyException: WorldEdit
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:219) [spigot-1.10.jar:git-Spigot-6016ac7-10c10b3]
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugins(CraftServer.java:297) [spigot-1.10.jar:git-Spigot-6016ac7-10c10b3]
at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:202) [spigot-1.10.jar:git-Spigot-6016ac7-10c10b3]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:539) [spigot-1.10.jar:git-Spigot-6016ac7-10c10b3]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] I see you renamed your plugin - and if you did, was that change accommodated for within your plugin.yml? Show us your plugin.yml please Something like this: 1 | name: TotalFreedomMod
2 | main: me.totalfreedom.totalfreedommod.TotalFreedomMod
3 | version: ${tfm.build.version}
[...] To see if this is the case or not, temporarily rename your copy [of TFM] back to `TotalFreedomMod.jar` and restart.
|
|
vrrdnt
Full Member
Posts: 106
| Likes: 88
|
Post by vrrdnt on Mar 26, 2018 2:04:03 GMT
I'm actually using the Electrum 12.2 prerelease, and the jar itself is called TotalFreedomMod.jar. I've tried many different versions of worldedit, including TF-WorldEdit, the latest worldedit jenkins build, and my own compiled jar. All of them result in aero breaking. If necessary, this is my plugin.yml: name: TotalFreedomMod main: me.totalfreedom.totalfreedommod.TotalFreedomMod version: ${tfm.build.version} description: Plugin for Total Freedom. depend: [Aero, WorldEdit] softdepend: [BukkitTelnet, Essentials] authors: [Madgeek1450, Prozza]
|
|
vrrdnt
Full Member
Posts: 106
| Likes: 88
|
Post by vrrdnt on Mar 26, 2018 2:06:26 GMT
i've found that if tfm and aero are the only two plugins, there's zero errors. it's when i add any others that these errors occur. what plugins are you adding? At the moment, I'm just trying to get Aero, TFM, WorldEdit, BukkitTelnet, and Essentials to work together.
|
|