Cuberite Forum
Lightning - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html)
+--- Thread: Lightning (/thread-1408.html)



Lightning - daniel0916 - 03-14-2014

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/archive/master.zip
GitHub: https://github.com/daniel0916/Lightning
(the plugin use the GetBlockXYZFromTrace function from the WorldEdit Plugin)


RE: Lightning - xoft - 03-14-2014

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.


RE: Lightning - daniel0916 - 03-15-2014

(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...


RE: Lightning - daniel0916 - 03-15-2014

Now you can lightning other players and you can rightclick with a BlazeRod for lightnings.


RE: Lightning - ruhula - 03-15-2014

nice plugin.Wink you have good ideas keep it upIdea ,you should go professional in this directionBlush


RE: Lightning - xoft - 03-15-2014

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?


RE: Lightning - daniel0916 - 03-15-2014

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...


RE: Lightning - xoft - 03-15-2014

Use no permission for the binding, and then check the permission manually in the handler, using cPlayer:HasPermission().


RE: Lightning - daniel0916 - 04-05-2014

New Version released. I also updated the start post Smile