IMPORTANT: Please use the plugin carefully and limit the power using the config. I hardcoded a maximum power of 10, but even this power can easily crash your server as soon as there are too many players using mortars at the same time. When updating, please delete the "Mortar"-folder in your server's plugins-folder because Mortar does not update the config. If there are new lines in the config, Mortar will not be able to use them which will result in Mortar not working as it should. There is absolutly no support of Permissions 2.X/3.X or GroupManager. Please use a Permissions-Plugin supporting SuperPerms. Visit Mortar on DevBukkit Description: Mortar introduces, like the name already tells you, mortars into Minecraft. This is my first plugin, so feel free to give feedback on how to improve it. Features: Enables players to use eggs as mortars. Power of the mortar can be set in the config. WorldGuard-regions which prevent players from building can also prevent players from destroying blocks with mortars. Costs for shots can be set payment via resources economy-support (requires Vault) Videos/Screenshots: Version 1.7 (Move your mouse to reveal the content) Version 1.7 (open) Version 1.7 (close) Thanks to Keivo, there is a new video showing Mortar in version 1.7. Version 1.3 (Move your mouse to reveal the content) Version 1.3 (open) Version 1.3 (close) Thanks to puffnuget for this little video, showing the destructive power of Mortar. I found another video on Mortar which shows even better how destructable it is... Commands: /mortar <on|off>: (De)activates the plugin. /mortar setpower <value>: Sets the power of your mortar. /mortar showpower: Shows you the power of your mortar. /mortar help: Show you the usage of mortar. /mortar reload: Reloads the config. Permission-Nodes: mortar.use - Allows a player to fire mortars using eggs. mortar.* - Allows a player to use all features of the plugin. FAQ: Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Code: 2011-12-17 16:47:10 [SEVERE] Could not pass event PLAYER_INTERACT to Mortar java.lang.NullPointerException at phiwa.mortar.mortar.payForShotEconomy(mortar.java:183) at phiwa.mortar.mortar.payForShot(mortar.java:150) at phiwa.mortar.listeners.players.onPlayerInteract(players.java:46) at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:330) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:171) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:142) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:560) at net.minecraft.server.Packet15Place.a(SourceFile:39) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) If you encounter this error you do don't have an economy-plugin installed. Vault only tells an installed economy-plugin what to do but it does not contain the functionality of one. Download: Only available on DevBukkit Changelog: Version 1.7.1 Updated for CB 1.4.7-R1.0 Version 1.7 Complete recode, the mortar now behaves like a real mortar (I'll release a video showing the new way Mortar behaves soon) Works with CB 1.4.6-R0.1 Added new messages (Delete your old config and let Mortar generate a new one!) Version 1.6 Updated to new event-system to prevent plugin-break after release of RB 1.1-R5. Version 1.5.1 Added the option "SendWarning" to the config. If set to "true", players will automatically send a warning to the chat when shooting a mortar like they did by now. If set to "false" this auto-message is deactived. Version 1.5 Added the option "UseWorldGuard" to the config. If set to "true", mortars which are shot into a WorldGuard-region which is protected won't explode if the player who shot it is not allowed to build in that region. Version 1.4.3 In the version 1.4-1.4.2, the command "/mortar off" gave you a message that Mortar was disabled, but it had no effect anymore. Fixed that in 1.4.3. Version 1.4.2 Disabled shooting mortars by left-clicking because that might happen by accident (right-clicking might happen by accident as well, but I cannot disable both of them) Version 1.4.1 Fixed an exception which occured when using items to pay for mortars. Version 1.4 Added Economy-support (requires Vault) Version 1.3 The warning is now sent when the players shoots the mortar, not after the mortar's impact. Added a cooldown time. Players can only shoot a second mortar after their first mortar exploded. This stops players from spamming the server and limits the danger of them crashing it. Added the possibility to set a mortar-item in the config which is used to fire the mortar. Item can be set in the config. Added the possibility to enable a payment system which takes a specified amount of a specified item out of the players inventory when he fires a mortar. Payment system can be enabled or disabled in the config. Item which is taken away can be set in the config. Amount of the item which is taken away can be set in the config Version 1.2 Added a config. Includes the option to set the maximum power of a mortar a player can set. Includes the option to set the warning message sent to the chat when a player fires a mortar. Set the maximum limit of a mortar to 10 (not even changeable using the config) because higher values easily crash a server! Changed the command /mortar set <value> to /mortar setpower <value> Added the command /mortar showpower Version 1.1 Message "Fire in the hole!" is now sent to the chat by the player using the mortar. Added Permissions-Node "mortar.*" to give players the power to (de)activate the plugin. Version 1.0 Initial release ToDo-List: green = already implemented; orange = partly implemented; black = not worked on yet Differentiate between different players! Currently, if one player set the power of the mortar this is the power of all player's mortars... Add the possibility to use a different item to shoot the mortar. (+maybe possibility to change the item in the config) Add possibility to use resources to pay for shots Add a cooldown to stop players from spamming mortars. Add support for economy-plugins. Add possibility to set a region and limit the use of mortars to it (mortars does not explode if the shooting player has no building-rights in the WorldGuard-area the mortar hits). Add different types of mortars (explosive, fire, smoke?, ...) Add possibility to set different MaxPowers for different Permissions-Groups. Add possibility to shoot mortars from dispensers Requests: If there is anything you would like me to add, simply ask for it. Please be aware of the fact that I'm still quite new to coding and might not be able to fullfill every request. Known Bugs: I hope the are no bugs. If you find one, please report it here. Thanks to... ... Smex who helped me several times or at least suffered together with me. ... marcel who helped me to clean my code up. ... Arkandji who designed the first banner for me (which somehow got lost. -.-).