Cannons
What can it do?
Cannons is a highly configurable plugin which allows you to fire block build cannons. It is possible to aim and load different amounts of gunpowder to hit targets at different ranges. The power of redstone makes it possible to set the gun to auto load and activate the rapid fire mode. Choose your projectile from a broad spectrum of cannonballs and smash the enemy.
With Cannons 2.0 you are also able to design your own cannons using .schematic files and give each cannon their own settings, as well as different types of projectiles.

Features
- Build a cannon out blocks
- Design your own cannon and save it as .schematic
- Design and fire different projectiles to smash your enemy
- Use redstone to fire guns from distance
- Rapid fire with auto-load possible
- Destroyed blocks can be restored with CreeperHeal (if 'custom' option is true)
- Cannons will stay load and aligned due to the database
- Movement plugins (e.g. Movecraft) are supported if a cannon has a sign to store a tag
- API for ships plugins (e.g. iSails) to use cannons on ships without signs.
Videos
by ServerMiner
by wickedbrother
Out-dated showcase 1
Out-dated showcase 2
Recommended plugins
- ObsidianDestroyer
- WorldGuard (flag protection: '/region flag NAME other-explosion deny')
- CreeperHeal (set 'custom explosion' for your world to repair cannon damage)
Installation
- Install WorldEdit first (don't forget this)
- Copy the cannons.jar into your Bukkit's "plugins" directory, then run the server.
Dependencies
This plugin requires:
Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version If you wish to disable this feature (/me cries), you can do so by opt-ing out, which you can do in the config file under /plugins/PluginMetrics/
Information for Cannons 2.x
Tutorial:
Additional information:
Cannon Designs
- Share your designs with other people: Cannon Designs
Known Bugs
- The cannon ball (snowball) becomes invisible after 60 blocks but hits the target.
- Voxelsniper will delete Buttons/Torches when you load the gun (be careful when you click the barrel)
Need Help?
Credits
- Raser4000
- DreTax
- JlJlJl
- and many more

-
View User Profile
-
Send Message
Posted May 6, 2015@coolMJW You can replace messages you do not want with " " ("space") to suppress it. A sign on the barrel should give you the cannon angles, let me know if you need more.
-
View User Profile
-
Send Message
Posted May 5, 2015I like the plugin, would there be a way to stop it from spamming your chat?
For say by using the titles system or something similar?
-
View User Profile
-
Send Message
Posted Apr 13, 2015@GodsDead Good point. Somehow the permissions.adjust was not read from the config. I fixed that and uploaded a new version 2.2.6.
-
View User Profile
-
Send Message
Posted Apr 10, 2015@DerPavlov
Ok I managed to get my infinite cannons working! This is superb, although im having an issue with permissions and getting people to aim the "infinite cannons" as I have called them. I have created custom permissions for the new cannons: http://pastebin.com/bd9g1biv and I have given those permissions to my lowest base-group: http://pastebin.com/k4HP4pek But they are still getting the error message "You have no idea how to adjust the this QAR Cannon".
-
View User Profile
-
Send Message
Posted Apr 4, 2015@GodsDead You can use 'doesExplosionDamage: false' and 'doesPenetrationDamage: false' to prevent block damage. However players can be hurt. You can also turn off the player damage.
-
View User Profile
-
Send Message
Posted Apr 4, 2015@DerPavlov
Superb! removeChargeAfterFiring wasnt in my configs! Must be an addition that I missed! I regenerated the configs on my dev environment to see if there were any more changes!
Sadly the GriefPrevention developer has made another blunder in his recent update making cannons destroy claimed land, so Im gonig to have to put off testing these cannons so my spawn isnt blown up even more, Just been on to see a giant hole in my spawn.
I'll give this a try once the GP developer fixes this hole on his plugin!
Thank you.
-
View User Profile
-
Send Message
Posted Apr 2, 2015@GodsDead I recommend 'removeChargeAfterFiring: false'. You load the cannon once with the projectile it should use and it will stay loaded until you break the barrel. Then disable soot (sootPerGunpowder) and pushing (projectilePushing) to keep it easy.
In your case with the chest the new players are probably missing the permissions for the projectile.
-
View User Profile
-
Send Message
Posted Apr 2, 2015Hey, I want to make infinite cannons at my spawn for display purposes only, so a new player can come on and press the button and it fires, I have got as far as it needing to someone load a projectile into it. (I don't want to use chests, these would just get looted and make the design ugly)
needsGunpowder: false gunpowderConsumption: false projectileConsumption: false ammoInfiniteForPlayer: true ammoInfiniteForRedstone: true autoreloadRedstone: true
allowedProjectiles: - spawncobblestone
How can I do this?
Edit: We hide the chest with a projectile in it, and gave all the needed permissions to the lowest rank, but when they Sneak + Right click it says there is no projectile in the chest, when I do it (admin role) it works fine, This isnt a good solution as they still need to Sneak+Click, how can I get around this?
-
View User Profile
-
Send Message
Posted Apr 1, 2015@Tomsi126 There is a folder localization, which has two files. Just rename localization.yml to localiziation_english.yml and localization_german.yml to localization.yml.
@robotnikthingy I have the implementation of this in my head for a while, but I didn't have time to implement it yet.
-
View User Profile
-
Send Message
Posted Apr 1, 2015How do i set the language into german?
-
View User Profile
-
Send Message
Posted Mar 31, 2015Has any progress been made with the fire support mode (i think thats what its called?)? thats where cannons will bombard a designated target from far away. I really would like to see that in game
-
View User Profile
-
Send Message
Posted Mar 25, 2015@DerPavlov
Will do! and i'll let you know if the problem continues
-
View User Profile
-
Send Message
Posted Mar 25, 2015@breakfastboy2000 Are you using the latest version of cannons. First the config file is much too short and the log file entry "check cannon" does not exist anymore.
Please try to the latest version (v2.2.5) delete the old Cannons plugin folder.
-
View User Profile
-
Send Message
Posted Mar 24, 2015For some reason, this plugin only generates one config file for me. I'll post it below:
config.yml
general: debugMode: true cannonLimits: useLimits: false buildLimitA: 1 buildLimitB: 100 tools: ajust: 0:0 autoaim: '347:0' rotatingItem: '350:0' database: username: bukkit password: walrus isolation: SERIALIZABLE driver: org.sqlite.JDBC url: jdbc:sqlite:{DIR}{NAME}.db rebuild: false
it doesnt give me the custom projectiles or cannons things, how do i get these?
It also spams my console with ". :: [Server] INFO [:: INFO]: [Cannons] check cannon"
-
View User Profile
-
Send Message
Posted Mar 1, 2015I used the Minecraft region fixer tool to scan for and delete any corrupt chunksz but it did not find any
However, I noticed my spigot version was outdated by a month or more, so I updated it, and I'll see if maybe that fixes the problem
-
View User Profile
-
Send Message
Posted Feb 25, 2015@Legueshhh I believe it is a problem of bukkit/spigot while generating new chunks. If it somehow fails, there is the error "already decorating" somewhere in the text. Repairing your chunks should fix the problem. I can also try to analyse your world, but you have to send it to me, since I am unable to reproduce the error.
Should you have a different error message, please forward the error log to me.
-
View User Profile
-
Send Message
Posted Feb 23, 2015@DerPavlov Hey, i'm using the plugin and i've these errors. Can you please help me ? It should be kind ! Thanks. Skype: legueshhh1 (This plugin is very important for my serv)
-
View User Profile
-
Send Message
Posted Feb 22, 2015@robotnikthingy Can you send me your server data. I am unable to reproduce the problem.
-
View User Profile
-
Send Message
Posted Feb 21, 2015Hi, I found a bug which crashes the server. The console spams this message over and over until the server finally crashes
http://pastebin.com/t0dMxJVS
-
View User Profile
-
Send Message
Posted Feb 19, 2015@Loraxe42
Finally :D Don't worry about tests :)