Cuberite Forum

Full Version: Lightning
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Lightning
A Lightning Plugin for MCServer

Feature
Create Lightnings at the look position with a command.
But you can also use BlazeRods for lightnings Smile. Permission: lightning.click

Command|Permission
/lightning lightning.use
/lightning <PlayerName> lightning.forplayer

Download: https://github.com/daniel0916/Lightning/...master.zip
GitHub: https://github.com/daniel0916/Lightning
(the plugin use the GetBlockXYZFromTrace function from the WorldEdit Plugin)
Nice one. Although as a control freak, I'd have preferred if it was possible to bind an item, so that right-clicking with, for example, a blaze rod, would make the lightning hit at the looked-upon block.
(03-14-2014, 11:57 PM)xoft Wrote: [ -> ]Although as a control freak, I'd have preferred if it was possible to bind an item, so that right-clicking with, for example, a blaze rod, would make the lightning hit at the looked-upon block.

Okay, i will add this. I also have a other idea...
Now you can lightning other players and you can rightclick with a BlazeRod for lightnings.
nice plugin.Wink you have good ideas keep it upIdea ,you should go professional in this directionBlush
Perhaps use a different permission for the commands - what if the server admin wants to give someone the permission to strike players, but not at sight / using the blaze rod?
How can i use different permissions in one command?
PluginManager:BindCommand("/lightning", 	"lightning.use", 	HandleLightningCommand, 	 " - Create Lightnings");

/lightning and /lightning <PlayerName> is the same command...
Use no permission for the binding, and then check the permission manually in the handler, using cPlayer:HasPermission().
New Version released. I also updated the start post Smile