Really strange... I have got 2 chests to load, both are chests (I checked the coords) and I get two different results from them: Once...
Well, if I add this, the output is "CHEST": getLogger().info(mCurrentWorld.getBlockAt(loc).getType().toString());
You may want to use HashMaps since they are not as complicated as databases and seem to be enough for this purpose. Just read through...
import org.bukkit.Block.Chest; ... ... BlockState st = mCurrentWorld.getBlockAt(loc).getState(); Chest ch = (Chest) st; Still produces a cast...
Well, as far as I have tested the getWorld().getBlockAt(myLocation).getState(); works fine, it just doesn't want me to cast the state to a chest....
I'd rather do: public void onInventoryOpen(InventoryOpenEvent event) { if (event.getInventory().getType() == InventoryType.CHEST) {...
Besides, the plugin won't stop anyone from flaming. You need to try all possible combinations by removing all points, spaces,... from the line....
If the plugin class is called "BlockChanger2", why do you add itself as a member? I think (especially because you say that the error repeats...
But how can I get the Chest() instance now? Casting the state to a chest directly produces a null pointer exception again...
I got the following problem: I have a instance of Location(), and I know it points to a chest (I have even tested it). I want to check the...
Look at http://forums.bukkit.org/threads/how-to-read-stack-traces-and-troubleshoot-your-own-plugins-by-yourself.32457/ in order to find out where...
Well, you got a null pointer exception at the class vaulttest at line 51 at the event "setupChat". I think it would help you to read this post:...
I feel like it's not clear what you want. Firefly thinks you want to perform a command when you right click an item while the inventory is opened,...
Well, I did getServer().getPluginManager().RegisterEvents(mEventListener, this); at onEnable() Btw. how is it possible to let bukkit load more...
Hm really strange... The following code seems to produce no output at all (while mContext points to the JavaPlugin class): ... same with...
Separate names with a comma.