The most popular way of differentiating a custom inventory from a player inventory is to simply give the custom inventory a title. Then, when you...
I want to save large areas of blocks to files for later use. What information do I need to save about a Block in memory such that when I reload...
I want skeletons to fire two arrows instead of one. It is possible to launch a second arrow using World#spawnArrow() when a ProjectileLaunchEvent...
@megamichiel Holy hell, how did I miss that. You are a godsend, thank you. Solved.
@megamichiel Yes I saw that. As I said I am looking for a more extensive tutorial/example beyond the basics of chunk generation. Thank you anyway.
I am trying to write a custom map generator. However, I am having a lot of trouble finding any good chunk generator examples or any sort of...
@567legodude Ah I see. Thank you. Solved.
How do I retrieve a Permission object from Bukkit given the name of the permission (ex. "antixray.mine.ironore")? Thanks.
Listen to PlayerDeathEvent. Get the killer of the player (if any), and increment his kill count by 1. If you don't want to use a custom player...
Good to know. Though I would have expected the server to crash, not simply not recognize your plugin.
@DoggyCodeâ„¢ The most common causes of a plugin not loading are: 1) The "main" node in your plugin.yml is wrong. 2) You exported your jar wrong....
Spigot is a wrapper for Bukkit. The spigot jar should contain the entire Bukkit API. The problem you are having seems to be an issue with your...
Base armor values are calculated by minecraft and there is no way to change them using Bukkit. From rjVapes:
You would have to listen to EntityDamageEvent, which is called when an entity is damaged. From there, you should determine whether or not...
You would have to listen to CreatureSpawnEvent, and then get the location of the creature being spawned and check whether or not soul sand is present.
@teej107 Surely this is not the standard way of doing things when working with an API? That seems incredibly unreasonable. In fact, I can think...
@teej107 The problem with that approach is I have to manually specify which plugins will be loaded after mine. I'm making an API that is to be...
I am developing an API/plugin which contains a Listener class. Obviously, I have to register this listener with Bukkit-- and to do that, I pass in...
This is a very common Java mistake. You should read up on the difference between == and #equals()
@teej107 That an an extremely good reference and I am liking your post for that reason.
Separate names with a comma.