Pirate Cannon

Description
Pirate Cannon enables you to create cannons that shoot projectiles, which explode on impact. You can use it in combination with Movecraft to have some great pirate battles or spaceship fights with your friends! With Pirate Cannons you dont have to reload a tnt cannon every shot, just define a reload time and ammunition will be taken from your inventory.
Installation
1. Paste the PirateCannon.jar in your server's plugin folder.
2. Reload/Restart your server. A config file will be generated in /plugins/PirateCannon
3. Edit the config.yml to match your wishes.
4. Reload again! That's it!
Usage
To create your cannon, place a row of blocks in the shooting direction. This will be your cannon. The length of a cannon can be limited in the config. Its standard value is 1 to 3. Note that only certain blocks can be part of a cannon. They can be configured as well. Standard blocks are cobblestone, iron blocks and obsidian. Now place a wall sign at the end of the row on the cannons last block, and write "c" or "[cannon]" in the top line. Thats your cannon. Right-click the sign to shoot.
Click here for rotation instructions and a picture!
If it is not working, check the length and the block types of the cannon. Feel free to create a ticket if you have any issues.
Showcase Videos
Skip to 2:55 for the action ;)
Old showcase
Update news on v 1.0.3
Thanks a lot to Max5081 for recording this :)
Review by Retroswamp
Showcase (French) by Kaikinadevelopper
Showcase (French) by leridernoir
Thank all of you very much for taking these videos :)
to do
- fix bugs (please report any issues) ;)
Please message me if you have any ideas on what i could add/change.
Changelog
v1.0.7
- added redstone triggers (here is how they work)
- fixed a some bugs concerning long cannons
- fixed a bug that caused players to die twice (only noticable with death-counting plugins)
Please add "useredstonetriggers: false" to your config (or delete it, reload/restart the server, then set your settings up again). I am sorry if that causes trouble.
v1.0.6
- updated to Bukkit 1.7.2
- fixed a bug that broke cannons longer than 3 when rotating
- added configurable entity damage to config
- did some code-cleanup (I know, thats boring, but it helps me adding/fixing stuff)
- added new permission "cannon.create", players without this permission are no longer able to create cannons
Please either delete your config and let the plugin create a new one, or add "entitydamage: 0" and "entitydamagerange: 2" to the explosion section. Sorry for that!
v1.0.5
- added 90° rotation
- fixed permission bug
You'll have to delete your config again. Back it up, and copy everything back in. You don't have to worry about changes value types this time.
Alternatively you can add "allowrotation: true" and "rotationblock: 76" by yourself if this seems easier to you.
v1.0.4
- added some cannonball types (arrow, egg, expbottle, potion)
- added message to display the remaining cooldown time of a cannon
You'll have to delete your config again, sorry for that. Back it up and paste your changes in the new one. Reload / restart your server after deleting the config to create a new one. If I remember right, there are no changes in the value types (list or number, for example), but please check it before pasting.
v1.0.3
- added cannon depending cooldown, so one cannon can only shoot once in a certain time (not bound to the player like before)
- added option to deal additional damage to the explosion damage
Once again, you will have to delete your config file. Back it up! The new config is created on reload / restart. You can copy your changes into the new config. Please have in mind that the options value type (number or list, for example) might have changed. Reload again to apply your changes!
v1.0.2
- added configuration option to disable block damage
- added configuration options to use multiple munition types
- added configuration options to use tools (must be in hand!)
I'm sorry, but you will have to delete your old config. Back it up if you did any changes! A new one should be created on reloading/starting the server. You can copy/paste your old settings into the new config. Mention that some options which were just integer numbers before are now lists! After that, reload again and the changes will apply.
v1.0.1
- added configuration options to change the impact explosion
- added configuration option to change the cannon's smoke effect density
I'm sorry, but to use the options you will have to delete your old config. Back it up if you did any changes! A new one should be created on reloading/starting the server. You can copy/paste your changes into the new config. After that, reload again and the changes will apply.
v1.0.0
- Plugin created. No changes yet.
-
View User Profile
-
Send Message
Posted Dec 25, 2013@MAcATeR2
It would be possible to add a feature like that, but it will not work in combination with any plugin which moves cannons, like movecraft (or others). In addition it would require a lot of work. I am already trhinking of a way to implement aiming, this was requested by multiple people, but I am trying to keep it easy enough to still be able to use it with movecraft (or similar plugins). Also, I would like to keep controlling a ship, with cannons on it, easy enough to be done by a single person.
-
View User Profile
-
Send Message
Posted Dec 25, 2013@MAcATeR2
Well, not in the plugin (As in pointing it AT that spot, need a mod for that) seeing as you can't really diagonally aim a block. BUT, I think, THINK it's possibly for it to just shoot that way, not "aim" that way...
You'd have to ask Nexu though... I have no idea how plugins work. ;)
-
View User Profile
-
Send Message
Posted Dec 24, 2013Is it posble that you can change it so that players click the sign and join the canon then click on the place they want to shoot at and the canon shoots it instead of having only 1direction cannonball you can shoot where ever you want.
-
View User Profile
-
Send Message
Posted Dec 22, 2013@MineCubix
YOU need one thing for this, the plugin also needs one thing. What you need: a permission plugin. One permission plugin I use I think is either PermissionsEx or that Groupmanager plugin, whichever I feel is the easiest to use at the moment.
@crunchycamsta
Added in.
Gotta love them 1-2 month old replies. xD
-
View User Profile
-
Send Message
Posted Nov 28, 2013Would it be possible to add an angles feature like the one in cannons plugin? I was thinking it could be done by using a tool to right and left click the sign to change the angles.
-
View User Profile
-
Send Message
Posted Nov 27, 2013Hello, How can i do that players can use cannons but cannot create them ?
-
View User Profile
-
Send Message
Posted Nov 18, 2013I thought I would tell everyone how we have configured cannons and how the members use them. Block damage is set to off, but the blast radius is 8 (so that the black is as big as a chunk) and the damage is set to 500 so that anyone in the blast radius dies instantly regardless of armor. Cooldown per cannons is set to 30 seconds, so cannons are always built in batteries so that rate of fire can be optimal.
Cannons are highly popular in PvP since it allows you to kill boring people who hide in buildings. Cannons duels where the victims of a siege try to strike back by building their own cannons and attacking the enemy cannon battery is common. Overall the plugin is a great success and vastly superior to its competitors, thank you for creating it.
-
View User Profile
-
Send Message
Posted Oct 22, 2013Another thing, playerdamage: as it should only affects players, but we could also use a mobdamage: so that mobs can also be set to get extra damage.
-
View User Profile
-
Send Message
Posted Oct 20, 2013@Nexu18
I'll post an error in console in a while, I have to go find it.
Used same config, didn't work, so I deleted it and used a fresh one, still didn't work
Plugin showed up in /plugins, and showed on the /cannon command
-
View User Profile
-
Send Message
Posted Oct 20, 2013@GreenGrizzlyBear
To fix this issue, it would be very helpful if you could give me some more information about errors in the server log, if there are any. Is the plugin loaded correctly? Did you upload the same configuration file?
I can not help you without this information. Sorry for any trouble caused by this problem.
-
View User Profile
-
Send Message
Posted Oct 19, 2013So I tested it all in sinlge player [local hosted server] everything worked, and it was an exact backup of my server, when I uploaded to my server, it wouldnt work a bit?
-
View User Profile
-
Send Message
Posted Oct 16, 2013@GreenGrizzlyBear
There is only one permission: cannon.use
Set the term "permissions:" in your config to "op" (already set so by default) to use it.
-
View User Profile
-
Send Message
Posted Oct 14, 2013I don't want to give to all my players, just a certain group.
I can't find the permissions?
-
View User Profile
-
Send Message
Posted Oct 12, 2013Hello there,
I am back at home and continue working from now.
@boogy202
@Flamez44
I was trying to fix your error, but I it did not occur to me. I am using craftbukkit #2897. This problem does not seem to be an interference with another plugin. It would be helpful if you could send me your config file, so I can test if it is the same as mine, or if there is anything unusual in it.
Since this error did not happen to me, it is very hard to fix it, sorry for all this trouble.
-
View User Profile
-
Send Message
Posted Oct 7, 2013For all us who use 1.6.4, use the V1.0.4. IT WORKS, the new one, with rotating cannons does not work yet. I have tested BOTH and confirmed BOTH
-
View User Profile
-
Send Message
Posted Oct 6, 2013I am using the latest dev build and the plugins i have worked with the previous build of this plugin.
-
View User Profile
-
Send Message
Posted Oct 6, 2013I am having the same issue as boogy202, I cannot create a cannon no matter what I do. I am Op. Ive cleared the config, no errors, but it just wont create a cannon. Advice?
I am using the newest DEV of bukkit, I use /cannon and it says Pirate Cannons ARE enabled on this server. My plugins list is here:
http://i.imgur.com/F8cUqX7.png
Ideas?
UPDATE: I found the error its throwing:
special characters are not allowed
(0xFFFD)
Here is the full error:
http://pastebin.com/ZQ7gu0Wn
-
View User Profile
-
Send Message
Posted Oct 6, 2013@DivinityCraft
Thanks for reporting again, I will work on fixing this when I get back home.
@boogy202
The config does not seem to be the trigger of this problem. If it is incorrect, the plugin would still be working, with some bugs though. Please try typing /cannon . If it says this was an unknown command, the plugin is not loading correctly. You can try /plugins as well and have a look if there is one called PirateCannon. If not the plugin is not loaded by the server. This can be the result of a plugin side exception as well as a server error. If there are any exceptions in the server log, please copy them and message me.
You should be able to use the last version even with bukkit 1.6.4 servers, maybe that helps out for now.
I am not at home from today until friday the 18th, and I wont be able to work on the plugin in this time. I will continue working as soon as I get back.
-
View User Profile
-
Send Message
Posted Oct 6, 2013@boogy202
We haven't had this problem, post what plugins you use and what bukkit and maybe we can help.
-
View User Profile
-
Send Message
Posted Oct 5, 2013For some reason in this update the plugin seems to break for me. i have deleted the config multiple times and i haven't noticed any errors but the cannons no longer shoot or be created.