Is it possible to somehow notify all depending plugins to do something? So basically I have my core plugin that should notify all the other...
I have a custom Config File File confFile= new File(this.getDataFolder(), "custom.yml"); @Override public void onEnable(){...
hapm Thank you so much! I spent hours trying to figure out what the problem was
hapm http://pastebin.com/hNZScqNX
hapm But that is line 29 in my listener.java hapm Here is the whole listener.java http://pastebin.com/sefmhRwD EDIT by Moderator: merged posts,...
hapm Plugin is initialized by this: public main plugin; public listener (main a) { this.plugin = a; } And generalInventory is...
So i have to make it an array list or somehting else?
It throws a NPE when I run this line of code: ItemStack[] contents = plugin.generalInventory.getContents(); This error log: 13:26:56 [SEVERE]...
Rprrr Oh, I think you misunderstood my question. I wanted to get the first x items of the list. Not how many there are in total.
Rprrr I don't get how this piece of code works...
Vandrake Jogy34 I haven't used arraylists that much yet. Is it possible to add one list item at a time, so you can always add a new list item...
Vandrake But it should be restart-proof, so that it is still htere when you restart the server
So I have a config with a node htat looks like this: test: 284,64,270: AB|CD|EF 536,85,360: GH|IJ|KL 26,182,113: MN|OP|QR 345,23,60:...
It would be great if you would post your solution
So, I save locations with a string in the config file. Now i want to "print" the list into the chat. But when there are more than 9 things it...
PeterK The plugin: public main plugin; public listener (main a) { this.plugin = a; } And the plugin.inventory (in main.class)...
I have the code ItemStack[] contents = plugin.inventory.getContents(); But when I try it (run the code) it throws a NullPointerException.
Still throws a nullpoiterException at inventory.getContents();
beastman3226 Errors i got: Line 6: The method getMaterial() is undefined for the type ItemStack Line 12: Variable must provide either dimension...
I know that it throws a NPE because some stacks are air -> null. But I have no clue how to change that. Can anyone help me with that?
Separate names with a comma.