Districts
Districts
Districts is like GriefPrevention, but players can sell/buy, lease/rent their claims!
Claims are made by command, or using a golden hoe. Once a district is claimed, the district is protected from griefing. District owners can rent out a district for a weekly fee, or sell the district for a price. District owners or renters can add trusted players to a district who then have most of the same rights as the owner or renter.
Video Tutorial on the Plugin (Portuguese)
Credits Video: (AbsintoJ/Districts)
Features
- District are made easily by using /d claim <radius>, which will make a square claim around you
- Districts can also be made using a golden hoe - hit one corner of the claim and the other corner
- Players are notified when they enter a district and exit a district
- Districts are automatically protected once made - admins can change the settings via config.yml
- Districts can be freely traded or rented out. This enables houses or buildings to be rented or sold
- Admins can give or take blocks away from players
Required Plugins
- Vault - make sure you use the latest version!
- Some kind of Economy Plugin, like Essentials
Installation and Configuration
- Download and install Vault and an Economy Plugin like Essentials if you haven't done so
- Download the plugin
- Place into your plugins folder
- Restart your server (or reload plugins)
- The plugin will make a folder called Districts. Open that folder.
- Check config.yml and edit to be what you want.
- Type /dadmin reload in the game to reload the config or restart the server.
- Done! To make your first district, type /d claim 2 to make a small claim.
Player Commands
- /district or /dist or /d can be used for short.
- /district help - lists these commands
- /district claim <radius>: Claims a square district with you in the middle of it
- /district view: Toggles the red district visualization off and on
- /district trust <player>: Gives another player full access to your district
- /district trust: Shows who is trusted in this district
- /district untrust <player>: Revokes trust of a player for this district
- /district untrustall : Removes all players from the trusted list
- /district pos: sets the corners of a district
- /district balance: Shows you how many blocks you have to use for districts
- /district remove: Removes a district that you are standing in if you are the owner
- /district info: Shows info on the district you are in (Same as /district trust)
- /district buy: Attempts to buy the district you are in if it is for sale
- /district rent: Attempts to rent the district you are in if is it for rent for 1 week
- /district rent <price>: Puts the district you are in up for rent for a weekly rent
- /district sell <price>: Puts the district you are in up for sale
- /district cancel: Cancels any For Sale or For Rent sign or terminates the rent lease at the next renewal date (notifies renters of eviction)
Admin Commands
- /dadmin reload
- /dadmin balance <player>: shows how many blocks player has
- /dadmin info <player>: provides info on the player
- /dadmin give <player> <blocks>: give player some blocks
- /dadmin take <player> <blocks>: remove blocks from player
- /dadmin set <player> <blocks>: set the number of blocks a player has
Permissions
permissions: districts.player: description: Gives access to basic player commands default: true districts.trustplayer: description: Basic commands plus player trusting default: false districts.advancedplayer: description: Gives access to advanced player commands (buy, sell, rent) default: false districts.buyblocks: description: Enable block purchasing default: false districts.admin: description: Gives access to admin commands default: op
To Do
- Allow customization of the rental period (currently 1 week)
- Enable owners to see a list of their districts
- Import GriefPrevention files
- Import Residence files
Source Code
Source code can be found here.
Stats Disclosure
This plugin utilizes a plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Visit mcstats.org if you would like to learn more about the stats collected. Go into /plugins/PluginMetrics/config.yml to disable stat collecting if you wish.
@Bobobaal
Something similar to tell me?
--Algo similar, para me indicar?@Bayside308
If you have seen the spigot page of this plugin than you will see that the developer stopped working on this plugin because he hadn't enough time to work on it anymore.
It doesn't load with spigot 1.8.8 on Java 7.
Version:
Plugins:
No errors are printed to console, nor is a folder created!
Please fix, as this plugin looks AWESOME :D
@Space_m0nkey
I'd submit a ticket with an enhancement suggestion for this.
@Flashera
yes it is
Great plugin, but why dont u add some more protection to it?TNT, creepers explosion? That would up it to a new lvl and imo it will be cool.And if u wanted it to bo for other purposes, i mean for like peaceful servers you can just add it to the config.yml Explosions: true/false Id love that!
I'm trying to change the messages more when I turn on the server they continue the same way, can you help me????
Is this compatible with worldguard?
@JamesMCL44
Please see my question in the ticket.
@JamesMCL44
Thanks - I'll look into it. I made a ticket from your comment so I can track this. I'm working on 0.9 now that fixes a few other bugs too.
Hi there, thank you very much for such a awesome plugin. I love it a lot and using it perfectly fit with my server. Unfortunately there is a problem I found:
After I edited and uploaded the config file to the server, I tried to use /dadmin reload to loadup the config. But it seems it does not work well, it said the configuration was loaded successfully but the settings are not applied when I tested it.
I tried multiple times, but still didnt fix the problem. Fortunately it does not reset the config and remove my settings. So I go ahead to restart my server and it turns out the plugin loaded my settings successfully this time. I know I can just reload the whole server without restart, but that is quite likely my server would crash.
Just hope you may fix this problem or investigate it. Once again, thank you for your hard work.
Cheers.
@gartenzaun
You're looking for districts.advancedplayer if I'm understanding your question correctly.
districts.player is the scaled down permission node that just gives you those 4 that you listed
For example, guests on our server have the districts.player permission (limited). After ranking up, they get districts.advancedplayer (additional controls). Hope that helps =)
@tastybento
Thanks for the detailed answer, but players with the permission districts.player do only have four items in the control panel, when they're on their claimed land:
They other things like allow / deny gate use etc. are missing... That's the thing I meant. They don't have access to the control panel with all features or did I do something wrong?
@gartenzaun
I'm still not completely clear on what you'd like.
If you own a district and do /d then you see a control panel and can toggle all the settings in the district. If you trust another player, they can see the same panel in the district. If you rent the district to another player, they too can see the panel and if they trust someone, the trusted player can too.
Now, if a visitor wanders into your district and does /d then they will see a panel too that shows info on the district, i.e., the settings of whatever the above folks set.
If you are an Op and go to any district, you will see the owner's control panel.
Hope that makes sense.
Does that cover everything you wanted, or was there another option?
@tastybento
When I (as a owner) want to open the control panel on a district, there are many things: toggle gate use, pvp allow / deny, crop trampling...
It would be great if "normal" users could have access to the control panel, but with a specific permission.
@gartenzaun
All players have access to the control panel... Do you not see that? Maybe I don't understand your question. :-)
Please add control panel support for normal players, or with a specific permission. That would be really nice :)
thanks tasty. i missed the buyblocks price in the config, must have missed it when i was looking through it.
@zto
It does work. To enable it you need to do two things:
Aha! you say that's three things! Okay, three things are required!
Set permission:
If you use PEX, then the commands would be:
Then set the config, for example to $10 per block:
Then reload:
You should be set. As a player, type /d and look for the gold bar icon. Or do /d buyblocks <number>.
Don't forget you need an economy.
Hope that helps!
i've tried everything and i can't use the buyblocks command. is there something broken with it? i also can't find a way to change enter/leave messages.