ConstructionSites
This plugin is compatible with 1.7.9 Craftbukkit and 1.8 Spigot.
« ConstructionSites Info »
Everyone knows that creating a beautiful structure can sometimes be difficult. This is especially true in Survival mode, where it is a challenge to get the simplest materials without your brains becoming a zombie's snack or being blown to bits by a creeper. So, how could you begin building a house template/building for a configurable price, have it built over time, then finished with the click of a button? Two words: Construction Sites.
NOTICE: This plugin is in BETA. Many features are largely untested, so it is recommended you use this for testing/personal uses only until the first release file is published. However, I would appreciate it if you used it on your server for public use because it will help me identify the bugs and thus, improve the stability. Please note that there will be a few problems to go along with it including glitch abuse, so keep an eye out.
What the Admin Does
This plugin allows the player to create custom build sites, of which the completion price, margin deposit (to take in account the player possibly obstructing the building) and build time are fully configurable. Server administrators create schematics with the aid of the powerful and easy-to-use WorldEdit tool. Then they save them, and add them to CS using a special admin command.
Hey, ConstructionSites 1.4 users, adding sites just got easier. You can now add sites with /construct by selecting the Admin Center option and using "create site." Read more, here.
What the Player Does
The player uses the CS base command to place a sign for whatever building he'd like to make. A fraction of the total build cost is initially subtracted (configurable), and depending on the build time the administrator set, he must wait while it finishes (the time remaining can be seen on the face of the sign, as the second line). The time on the sign does not count down while the server is down. However, once the server comes back up again, it will resume construction without any interaction by the player needed. Once this line turns green and reads "Complete", the player right-clicks the sign and pays the difference of the cost of the site and the margin deposit he made when he started it (since nothing happened to the sign during the build). The site is built and the build sign breaks.
Make sure to read the tutorials for information on how to set up and make a construction site.
In the mean time, here's a nifty demonstration of the plugin.
Check out more videos for ConstructionSites here.
And by the way, donations are greatly appreciated and very helpful!
« Dependencies »
Vault and WorldEdit (6.0+) are both necessary dependencies for ConstructionSites.
« Permissions »
The following are the permissions of ConstructionSites:
- csites.admin - Allows player to use /construct admin (addsite/delsite)
- csites.build - Allows the player to view and use the "Build" option in the ConstructionSites GUI. You MUST add this permission for players to see the option. Your GUI will be blank if they do not have this. Same goes for the next permission, "scan."
- csites.scan - Allows the player to view and use the "Scan" option in the ConstructionSites GUI.
- csites.build.<site name> - Allows the player to build a specific site. Example usages: csites.build.house or csites.build.fountain would allow a player to build the sites "house" or "fountain" if they exist.
« Commands »
(/con can be used instead of /construct for convenience.)
/construct - (With no arguments) Opens an inventory GUI with a variety of options.
/construct build - Lists the available buildings along with their prices.
/construct build (site) - Constructs a site.
/construct admin addsite (site name) (construction time: [hours:minutes:seconds, i.e. 12:34:40]) (site cost [dollars.cents])
/construct admin delsite (site name)
« Config »
The following is the config for this plugin:
CS: # The percentage of the build cost. This is subtracted from the player when he first makes the site, and only given back if he finishes the site. Advance: 0.25 Prefs: # ScanColors -> Enabled: When a building is being scanned, should it visualize it? # ScanColors -> Timeout: How long should it wait before removing the visualization? (20 = 1 second) ScanColors: Enabled: true Timeout: 100 Pasting: # The X, Y, Z scan offsets. In this example, the borders of the building must be at least two blocks away from any no-build WorldGuard regions for the site to be built. Offset: X: 2.0 Y: 2.0 Z: 2.0 # The names of the sites you add with /con admin addsite. This line will not appear in your config initially. The four listed names are only examples. Names: [] # The details for each site are below. These are also auto-generated when you add the sites. # And a list of unfinished processes are below. Don't tamper with these. Processes: []
« More »
CSPacks
Download the cool new ConstructionSites Pack, FactionsPack! Download it here: (Link)*
- CSPacks are not sponsored or approved officially by BukkitDev or Curse. Downloads are at your own risk.
You can send your own cool schematics to me if you have any.
@nashoxx
I don't, sorry. I'm very busy right now unfortunately.
Got a date for the plugin to update?
@ColonelHedgehog
Great!
@nashoxx
Hey,
I've been very busy lately, but I plan to update this to 1.9 very soon. I'm working on EquestrianDash right now, but this is next. :)
~ CH
When are you updating the plugin to 1.9? This is the only good schematic loader out there. Btw I tested the plugin disabling some NCP (NoChetPlus) options and the plugin now works, for everybody.
@lemons741
Can you post a ticket with the complete error log? (If you don't want to post the error log publicly, you can PM it to me)
@ColonelHedgehog
Hmm... I tried using a Craftbukkit 1.8.8 with Vault 1.5.6 and WorldEdit 6.1. With these plugins and this version, I still get the console error with exchanged versions being 1.8.8
@lemons741
It looks like you don't have Vault installed. Check to make sure you have the right version of Vault.
Also remember CS v1.4 is for 1.8+.
@ColonelHedgehog
I did, all i get is the same error in-game followed by this console output. Only it does make the sign, it is blank, and the glass scan area works as well.
[20:30:08 INFO]: lemons741 issued server command: /con build test1 [20:30:08 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'con' in plugin ConstructionSites v1.4 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:956) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:817) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] Caused by: java.lang.NoSuchMethodError: net.milkbowl.vault.economy.Economy.getBalance(Lorg/bukkit/OfflinePlayer;)D at com.ColonelHedgehog.CSAPI.ConstructionSite.makeBuildSite(ConstructionSite.java:158) [?:?] at com.ColonelHedgehog.CSAPI.ConstructionSite.<init>(ConstructionSite.java:55) [?:?] at com.ColonelHedgehog.Sites.Commands.ConstructCmd.onCommand(ConstructCmd.java:141) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] ... 13 more
@lemons741
I strongly recommend you upgrade to the latest version. The latest versions fix that bug.
Are there specific versions of the dependent plugins required for this? My test server's currently 1.7.9-R0.2 as it matches the highest version compatible with my live. So I have tried all available versions of ConstructionSites, all 1.7.9 compatible versions state always state internal error when doing "/con build test1".
I have tried both WorldEdit 6.0 and 6.1. I have tried Vault 1.2.31, 1.4.1 and 1.5.0. I installed Worldguard dependencies for earlier versions of your plugin which returned the same error.
Console Error after issuing /con build test1 (with created schematic and site) http:pastebin.com/aNDHBsYm
When I tried updating to my Craftbukkit 1.8+ and all following dependencies, I could add the site, but the sign would be blank and nothing would happen further.
@ColonelHedgehog
Thanks for the help.
I had disabled some of those already, but I will try disabling them all as you said. I will also try using the plugin without NCP. I will reply again once I have tested everything.
@nashoxx
Hi,
That's really strange. Something has to be cancelling the BlockBreakEvent. I'm looking at NCP's source, and there seems to be some checks for seeing if the player's arm swung too fast, if it's not in reach distance, if he's looking at the block, or if it's a liquid block.
I suggest you disable the checks that do the following:
I pulled all of those phrases from the source code. The text in quotes might help you locate them in the config. I'm not positive that they're related. They're just names I found used in the code.
If this does not work, then try *temporarily* disabling NCP altogether to see if it works. That will at least verify that it's a problem with NCP (which I STRONGLY suspect is the case).
I understand this is a huge pain. I'm going to be pushing a ConstructionSites update soon, and hopefully I'll be able to address this. At the same time, I may need to contact NCP's creator about potentially adding support for ConstructionSites within his own plugin.
Thanks for remaining patient, I really appreciate that you've brought this to my attention. I hope we can get this sorted out. :)
~ CH
@ColonelHedgehog
As I said, there were no regions defined where I tried to place the thing, I was literally about 100-300 blocks away from a protected area and I had no restrictions because there were no defined regions where I was trying to create the thing. And the building itself is like, what, 5x10 blocks or so?
Okay so if it's a restriction thing, what would that be? NoCheatPlus again? (Btw I disabled the option where it was kicking me because I placed too many blocks at the same time or something like that so it should work like a charm, but as I said in my last reply, it gives me that error.)
I really don't want to get rid of NoCheatPlus, is the only anti.hacking system I know that wil prevent people from hacking and flying effectively.
I don't have any other protection for block placing other than worldguard and factions and maybe the vanilla spawn protection which is set to 1 block of protection. (And of course I was trying to place the thing in a unprotected area-wilderness, whatever you want to call it.)
Can't really think in something else that's not allowing me to place a bunch of stonebricks. While being in "OP" I can build the thing, being in default mode just doesn't allow me to build, because it gives me that error I told you about in my last reply.
And another thing, I really like this plugin, it's the only "schematic-placing" plugin that works (or at least it works when I'm OP), all the rest of plugins are basically bugged, broken, outdated as fuck.
At least I got some progress, now it doesn't kicks me and I can finally see the build and scan icons in the /construct menu thing, just having this error with not alowing me to build in unprotected zones because the plugin or something else thinks it is a protected zone, if I get to fix this then I'm pretty sre everything will work just fine.
Any ideas on how I could get this problem fixed?
@nashoxx
ConstructionSites will not allow you to build a site unless you can place a block in the entire area where the building would be pasted. It tests by literally placing a block, then seeing if it was successful in doing so. It doesn't necessarily check for a WorldGuard region. Any restriction on placing things will cause it to quit like that.
It says: You can't build here. It overlaps a protected area.
But there aren't any regions defined where I'm trying to create the thing.
This happens when I'm a default player and I use scan/or build.
@nashoxx
You're welcome. I'll upload a quick fix for the debug message, followed by a bigger update sometime later (maybe Jan.).
@ColonelHedgehog
Ah thanks!
@nashoxx
NUUU stands for Not Ultimately Using Utility. This means that when you click on a sign and it's not a Construct sign, the plugin just notifies the user.
Probably just a debug message I forgot to remove. I'll be sure to add that to the list of fixes it needs.
As for the issue with NoCheatPlus, I'm not quite sure how I could fix that myself. This is likely a World Edit issue (this plugin uses WorldEdit for pasting buildings), so you may need to contact its developer.
EDIT: If there's some way to disable placing blocks very fast, you may consider that, too.
As for the actually using it, this sounds like an issue with permissions. You need to add the base permissions to the groups for it to work, not just the permission for a specific site. Make sure your users have:
And I'll add this to the description to prevent further confusion. Hope you enjoy the plugin!
@ColonelHedgehog
okay I wrote the full problem there. Please halp.