New answers tagged

0

I've seen multiply ways this was done in the past. Most of them failed and none of them were good enough to jump across this obstacle completely. Everyone of them has some flaw in it. I post the 3 most sucessfull ones: Start a separate server using java and make it generate the worlds for you. With java you can start another server in the same folder, and ...


0

Without the exact error I can only assume what the problem is. Both Player#getItemInHand(), ItemStack#getItemMeta() and ItemMeta#getDisplaName() can return null and thus can throw a nullpointer exception. You need to check if any of these is null before using them.


0

Instead of the this you need to pass an instance of the main class to the method. You can achieve this by using the constructor. When you create the Listener class (wich shouldn't be named listener BTW) you need to pass the instance of the main class to it. //Listener class <Main class> instance; public Listener(<Main class> instance) { this....


0

You have the option of redefining java.lang.Exception for your class loader and building your Exception to directly log the exceptions in that program or communicating the exception to some service/listener in your program B and logging it there. If that casts too broad of a net of Exceptions you could always use the same principles to redefine the exact ...



Top 50 recent answers are included