haamome Thread Tools > Edit Thread > Prefix > Solved
plugin.getConfig() instead of getConfig().
I got it working (sort of) using Player.hasLineOfSight(Entity) in the PlayerInteractEvent method. Thank you, everyone! :D You don't have to look...
clmcd42 Oh, sorry about that.
NerdsWBNerds Use the PlayerDeathEvent, then.
ThaSourceGaming The internal rewrites in Minecraft, that is.
iMarv The player sneaks at a Block, and the Block jumps up to about eye hight and falls down again, so almost staying still at eye hight.
iMarv That won't look as cool ;) Heirteir I don't want to do anything when the FallingBlock lands, I want it to reply to left-clicks when...
Heirteir That means a stationary Block changed by a non-player entity. That won't work :)
Heirteir Thank you for the suggestion :)
ThaSourceGaming Dinnerbone is one of the (if not the) main founder(s) of Bukkit, and he is responsible for most of the internal rewrites that...
Make sure your plugin is enabled successfully, and that the event is registered.
Like the error says; commands() is not a Method, and theredore cannot be executed.
public class YourPlugin extends JavaPlugin implements Listener { onEnable() { getServer().getPluginManager.registerEvents(this, this); }...
YourInventoryHere.addItem(YourItemHere);
Separate names with a comma.