Discussion forum > Suggestions
New protection system - Gonna try and code it
cschurz:
yep, you did the job.
but with spaghetti code like that... you are definitely contributing to the stereotype of "bad minecraft programmer" :)
this was my code, if you're interested :\
--- Code: --- <temporarily redacted>
--- End code ---
optical:
Where is this GUI?
Chief149:
--- Quote from: optical on August 06, 2012, 05:23:04 am ---Where is this GUI?
--- End quote ---
Also I wasn't really paying attention to how neat the code was. When I write code I do write in spaghetti code (such as with school projects), but then I neaten it up, or at least I do for larger projects. If you want to see a neater version of the code I can do a quick edit once I get home (flying home today).
Also, Optical he said no gui so I didn't include that. I still have the code so I'd just have to copy and paste a few lines from the code I uploaded onto the code for the gui.
Anyways when I get home I'm also going to learn some more with the bukkit api, and I think your area protection plugin has an API as well. If that's the case my plugin could simply use the area protection plugin for making/deleting the actual protected areas, but my plugin would simply set positions one and two using redstone ore placements, and not set the protected area until the player uses the command to make payment for the area.
Uryiel:
goodluck bro!! ;D ;D
optical:
Both WorldGuard and PreciousStones have API's, either one would work
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version