New type of protection system!

Started by Chief149, June 29, 2012, 01:55:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chief149

Ok so here is a proposal for a new way to protect areas!

So first off, for those who do not know how to use worldedit here is the info:

The basic way to edit a large area is to use the selected worldedit tool (wooden axe). You left click block 1, and right click block 2. When you do this you select two coordinates, and these coordinates become the opposite corners of a cube. When the //set command is used all blocks in this cube are changed to whatever the set command says.

Now lets talk protection stone!
Lets say we have a new ore for a protection stone. Lets say, redstone ore. Now the redstone ores themselves wouldn't be very expensive at all. Maybe like 100 bucks each. The real magic is in placing these stones. First off, the user would require two of these stones. Upon placing stone 1 (block 1) and stone 2 (block 2) a cube is created, and a glass wall will surround the area (restrictors would be made to make it so no matter how large an area is selected, the glass wall will be formed at a rate that won't lag the server). As this glass wall is made the player gets the following message in chat:

"Protection of an area this size will cost: " + (int cost) + ". To purchase respond with /yes or /no to not purchase"
or
"The selected area overlaps another protected area. Cannot protect!" (this shows before the glass wall is made if necessary)
or
"The selected area is larger than the largest allowed area protection!" (opti can set a max area)

if the user responds with "/no" then the glass wall disappears at a slow rate which will not cause server lag
if the user responds with "/yes" then either the price will be subtracted from the users balance, or if there is not enough money in the bank the wall disappears and the following message shows up:

"You do not have enough money to buy protection for this area!"

Now if an area is protected and the owner of the area breaks one of the stones then it will break the protection completely, and the user will receive a 75% refund on what was paid for the area protection. Note the user will have to manually go and retrieve their redstone ores in the event that something prevents a successfull protection, or in the event that the area owner breaks the protection for some reason.

Also I will now calculate the price of protection:

1 diamond PS stone protects a volume of 41x41x41 blocks = 68921 blocks
This comes out to be 68921/$55000 = $1.25 per block, or $1 per block if you round to the nearest whole number.
Therefore if a player selects an area that is 20x20x10 blocks = 4000 blocks total, then the cost @ $1/block would be $4000, and the player would see:
"Protection of an area this size will cost: $4000. To purchase respond with /yes or /no to not purchase"



Best griefer name ^



Nick3306

I suggested this a few months ago but opti did not seem to into the idea.
R.I.P. Blocky Jr. - Brutally killed by Kodak on accident

Chief149

I mean, this could easily be programmed into the current protection system most likely. I haven't seen any source code for smp plugins, but I would assume it wouldn't be that hard to program.

I would know if I could program in the procedure for this idea if I had the source code of the opticraft ps system, but I doubt that's meant to be available to anyone outside of the opticraft administration.



Best griefer name ^



Nick3306

Quote from: cheif149 on June 29, 2012, 02:25:42 AM
I mean, this could easily be programmed into the current protection system most likely. I haven't seen any source code for smp plugins, but I would assume it wouldn't be that hard to program.

I would know if I could program in the procedure for this idea if I had the source code of the opticraft ps system, but I doubt that's meant to be available to anyone outside of the opticraft administration.
We use the precious stones plugin for our protection. As far as I am aware it is open source.
R.I.P. Blocky Jr. - Brutally killed by Kodak on accident

☣2crzy4uall☣

Wow this is pretty damn cool sounding, im buying up diamond ps like candy and it sucks lol two ps and im done lol thatd be nice


Chief149

If it's open source then any chance I could see the source code? Is this plugin modified for Opticraft, or is it an unmodified plugin from the bukkit list? I might be able to pick up on it and try coding in a bit of the protection stone addition I was talking about in my original post.



Best griefer name ^



optical

Quote from: cheif149 on June 29, 2012, 08:09:14 AM
If it's open source then any chance I could see the source code? Is this plugin modified for Opticraft, or is it an unmodified plugin from the bukkit list? I might be able to pick up on it and try coding in a bit of the protection stone addition I was talking about in my original post.

https://github.com/SacredCoding/PreciousStones
Let me know once you have made the proposed changes, and I will review them and make use if satisfactory.

DeeKay

Pretty sure PreciousStones has a cuboid flag that can be set to a block. Not sure how that would work with money.
Sounds good though.

Victor1261

This seems like a pretty cool idea! I'd love to see this implemented.

Chief149

Quote from: optical on June 29, 2012, 11:10:54 AM
Quote from: cheif149 on June 29, 2012, 08:09:14 AM
If it's open source then any chance I could see the source code? Is this plugin modified for Opticraft, or is it an unmodified plugin from the bukkit list? I might be able to pick up on it and try coding in a bit of the protection stone addition I was talking about in my original post.

https://github.com/SacredCoding/PreciousStones
Let me know once you have made the proposed changes, and I will review them and make use if satisfactory.

I'm not promising you anything here lol. I've never coded plugins for a bukkit server, but I am a java programmer so I might be able to figure things out.



Best griefer name ^



☣2crzy4uall☣

Quote from: cheif149 on June 29, 2012, 02:08:52 PM
I'm not promising you anything here lol. I've never coded plugins for a bukkit server, but I am a java programmer so I might be able to figure things out.
Yes please do this and you will be an opticraft god lol


DiamondKnight629

Meh I think protection stones are fine

Chief149

Quote from: DiamondKnight629 on June 29, 2012, 03:32:02 PM
Meh I think protection stones are fine

I mean I think they are ok, but the thing I don't like is having to place so many of them because even the diamond ps stones aren't going to cover a whole big area (such as the giant manmade island and castle I built on it).

I got the project file, and I am trying to get the damn ide to use the bukkit API, but the developer of the plugin used IntelliJ ide which seems to be the dumbest ide because I can't find the part of the program where I tell it where the bukkit api is located......



Best griefer name ^



cschurz

Quote from: cheif149 on June 30, 2012, 01:23:15 AM
Quote from: DiamondKnight629 on June 29, 2012, 03:32:02 PM
Meh I think protection stones are fine

I mean I think they are ok, but the thing I don't like is having to place so many of them because even the diamond ps stones aren't going to cover a whole big area (such as the giant manmade island and castle I built on it).

I got the project file, and I am trying to get the damn ide to use the bukkit API, but the developer of the plugin used IntelliJ ide which seems to be the dumbest ide because I can't find the part of the program where I tell it where the bukkit api is located......

check out eclipse IDE, yo.

Chief149

I'm used to JCreator LOL

and yeah Ive used Eclipse a little bit, but meh.



Best griefer name ^