December 22, 2024, 10:47:15 pm

Author Topic: New type of protection system!  (Read 15823 times)

0 Members and 2 Guests are viewing this topic.

Chief149

  • Hero Member
  • **
  • Posts: 646
  • Oppan Gangnam Style
    • View Profile
New type of protection system!
« on: June 29, 2012, 01:55:04 am »
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:

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

if the user responds with
Code: [Select]
"/no" then the glass wall disappears at a slow rate which will not cause server lag
if the user responds with
Code: [Select]
"/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:

Code: [Select]
"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:
Code: [Select]
"Protection of an area this size will cost: $4000. To purchase respond with /yes or /no to not purchase"



Best griefer name ^



Nick3306

  • Owner
  • Champion Member
  • *****
  • Posts: 3795
    • View Profile
Re: New type of protection system!
« Reply #1 on: June 29, 2012, 02:14:41 am »
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

  • Hero Member
  • **
  • Posts: 646
  • Oppan Gangnam Style
    • View Profile
Re: New type of protection system!
« Reply #2 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.



Best griefer name ^



Nick3306

  • Owner
  • Champion Member
  • *****
  • Posts: 3795
    • View Profile
Re: New type of protection system!
« Reply #3 on: June 29, 2012, 02:28:22 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☣

  • Professional Redstoner
  • Champion Member
  • ***
  • Posts: 1434
    • View Profile
Re: New type of protection system!
« Reply #4 on: June 29, 2012, 04:12:49 am »
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

  • Hero Member
  • **
  • Posts: 646
  • Oppan Gangnam Style
    • View Profile
Re: New type of protection system!
« Reply #5 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.



Best griefer name ^



optical

  • Administrator
  • Champion Member
  • *****
  • Posts: 1844
    • View Profile
Re: New type of protection system!
« Reply #6 on: June 29, 2012, 11:10:54 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

  • Owner
  • Champion Member
  • *****
  • Posts: 2162
    • View Profile
Re: New type of protection system!
« Reply #7 on: June 29, 2012, 11:22:50 am »
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

  • Guest
Re: New type of protection system!
« Reply #8 on: June 29, 2012, 01:30:01 pm »
This seems like a pretty cool idea! I'd love to see this implemented.

Chief149

  • Hero Member
  • **
  • Posts: 646
  • Oppan Gangnam Style
    • View Profile
Re: New type of protection system!
« Reply #9 on: June 29, 2012, 02:08:52 pm »
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☣

  • Professional Redstoner
  • Champion Member
  • ***
  • Posts: 1434
    • View Profile
Re: New type of protection system!
« Reply #10 on: June 29, 2012, 02:57:26 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

  • Jr. Member
  • *
  • Posts: 77
    • View Profile
Re: New type of protection system!
« Reply #11 on: June 29, 2012, 03:32:02 pm »
Meh I think protection stones are fine

Chief149

  • Hero Member
  • **
  • Posts: 646
  • Oppan Gangnam Style
    • View Profile
Re: New type of protection system!
« Reply #12 on: June 30, 2012, 01:23:15 am »
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

  • Hero Member
  • **
  • Posts: 545
    • View Profile
Re: New type of protection system!
« Reply #13 on: June 30, 2012, 04:17:11 am »
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

  • Hero Member
  • **
  • Posts: 646
  • Oppan Gangnam Style
    • View Profile
Re: New type of protection system!
« Reply #14 on: June 30, 2012, 04:50:06 am »
I'm used to JCreator LOL

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



Best griefer name ^