0 Members and 1 Guest are viewing this topic.
I'm Much more smarter admin than whoever banned me.
Non-staff already can't place lava avc.
totally got shot down the first time i suggested. main arguments were, A) we'd harvest out the nether's lava
B) you get more overall time from blaze rods, 7680 secs for a stack vs 1000 secs for 1 lava bucket, (assuming u have infinite blaze rods )
C) you'd have to sit at the furnace to keep adding blocks to not waste the time
D)people would use it for griefing.
Those weren't his points he was making, he was stating reasons his suggestion got shot down
Quote from: 360OLLIE on April 05, 2013, 10:05:06 pmNon-staff already can't place lava avc.Completely missing the point... *sighs*
I don't think the problem is that we will run out of lava. The problem would be the increased amount of lava flow. Flowing lava causes more lag then stagnant lava.
Basically to implement this:1) Register a BlockPlaceEvent handler to the Opticraft server plugin (if not already done).2) On the onBlockPlace method call add this:public void onBlockPlace(BlockPlaceEvent bpEvent){ if(bpEvent.getBlockPlaced().getType() == Material.STATIONARY_LAVA) { if(!bpEvent.getPlayer().hasPermission("some.override.permission.for.moderators"))) { bpEvent.setCancelled(true); } }}Personally I would have preffered to combine the two IF statements into one using &&, but since the forum text editor was being wierd I found it to look nicer for viewing with two seperate statements.Basically, on each and every block placement, the above method is called. Then we check if the block placed is STATIONARY_LAVA, or a lava source block which is what is placed by a filled lava bucket. If I'm wrong then simply change the Material.<material> part on the first IF statement.If it is a lava block, then check to see if the player who placed the lava has the override permission (such as a moderator permission). Notice I have the ! in front of the hasPermission() call. For those who don't know how to program, that simply stands for if the player DOESNT have the permission. If not, then we set the event state to be cancelled, and Bukkit does the rest.Add that to the opticraft plugin, and allow lava buckets to be used. That code will block lava placement, but not picking up lava. So long as we can fill a lava bucket, we can use it in a furnace. No harm can be done as long as players can't place the lava.