rbuy
rbuy - Sell and buy WorldGuard regions by chat commands and signs.
[requires: WorldGuard, WorldEdit].
This helps to make regions tradeable and effectively overcome some trouble with the classical no-admins-on griefing periods for smaller servers, where people just can't reach a mod to get a piece of land.
Maintenance Phase
Due to timing constraints i will not be able to add much, though it already does what it does and i will keep it updated at least. Please drop a note if some economy or other thing does not work anymore.
Details: | Features | Configuration | Permissions | (API) | Planned | Source |
Overview
- You can sell and buy regions using commands or signs.
- You can get information about nearby regions that are offered for sale.
- Some aspects are configurable, like number of regions that you can sell or buy during some period of time, same with area or volume, if it is allowed to sell to members exclusively, what permissions people have by default, and others.
- See one of the sections under Details (above) for more information.
Requirements:
- WorldGuard, tested with 5.3, 5.4
- WorlEdit, tested with 4.7, 5.1.1 - required for WorldGuard anyway.
- Versions before rbuy 0.2.0 need admittance, which still has has use.
Economies:
- Vault
- Essentials 2.6.1
- iConomy6
- iConomy5
- BOSEConomy 0.7.2
- MultiCurrency 0.11
- PluginLibSharedLibrary (not yet available)
"I took a night out to write this - so don't complain." - does not apply anymore.
It appears that 2.4.1 has a faulty use of plshared inside, 2.4.2 will be pending approval now.
@BeastBoy123456789
Pending approval. swgt users also need to update.
Hey, Aso I Want To Use This Plugin For My Server And I Cant really Sell Plots Until I have Because I Would Like To use This Plugin. So Could You Please Update It For 1.6.2
@Pzyan
I forgot myself how to do it :p.
http://dev.bukkit.org/bukkit-plugins/rbuy/pages/Configuration/
Basically you set the duration to count buying in for and the maximum number of regions, that a player can buy within such a period of time.
So you set max-buy to 1 and time-count-buy to 14 (1 region within 14 days), that should do it. But don't sell them 2x2x1 shops :).
Hi asofold, when I looked at your plugin, I saw that you could put on a plot. The problem is, I don't undertand how I can change the time for that one, so that they, for example, can only buy a plot every 14 days. But I wouldn't like to use another Plot Plugin, because this is by far the best one I saw :D.
Added basic tab completion with regions you stand on:
http://dev.bukkit.org/server-mods/rbuy/files/17-rbuy-2-1-0/
To be approved...
@Sim181
Currently rbuy only allows to sell regions in the name of the player that issues the command. would make sense to add an admin command for selling one or multiple regions for a certain account ...
I may be doing somthing wrong, but how do I mark unowned regions for sale? I have regions set up as server owned so when people buy them the money does not go to anyone.
@Mayhem777
I think so.
Thanks i hope still working on 1.4.5 :)
@Mayhem777
It should still work, but i also uploaded a new version: http://dev.bukkit.org/server-mods/rbuy/files/16-rbuy-2-0-2/
1.4.2 support? :3
@asofold Works now, thanks dude! Code: Bukkit.getServer().dispatchCommand(sender, Befehl);
I copied the first code from an example code and changed it a bit, thats why it looks strange ;)
@derfl0
It is not the same, for you pass Bukkit.getServer().getConsoleCommandSender() as argument.
Actually for players clicking signs you should not dispatch the command as console, because of permissions the console might have that the players would not have.
Actually your method uses CommandSender sender as argument so you could rename it to executeCommand and pass the sender directly to dispatchCommand and not getConsoleCommandSender(), but i am not sure why you want to dispatch it as if console did it ...
Thx for the fast answer! I should have post the code:
public static void executeAsConsole(String Befehl, CommandSender sender) {
sender.sendMessage(ChatColor.YELLOW + "Your command will be executed by the Console");
Bukkit.getServer().dispatchCommand(Bukkit.getServer().getConsoleSender(), Befehl);
}
I think, this is the same code as Server.dispatchCommand( player, command), isn't it? If not please tell me where to change :/
@derfl0
Oh, you might consider executing the command in the name of the player: Server.dispatchCommand( player, command), if a player clicked the sign anyway !
Then it should be as if the player issued the command.
Hi, nice Plugin! I'm working on an own Sign Plugin which needs to execute Commands in the console. For example: gssign.executeAsConsole("rsell "+s1.substring(1,6), Player);
This command can not be executed by the Console: rbuy - Expect a player for using rsell..
Is there any chance to do this with the console?
I'm sorry for noobing, this is my first Bukkit Plugin ;)
Thanks, i have another plugin that does what i need but i like rbuy more :)
@Mayhem777
I added a simple version for the check now (global region count over all worlds): http://dev.bukkit.org/server-mods/rbuy/files/13-1-3-0/
@Mayhem777
I added the first line of the sign getting overwritten with "sold...", but i could also add to have the sign destroyed after buying. Have you tried the latest version ?
Number of regions:
I should add something for that, the question is on basis of what ?
If i check for the number of regions a player has at a certain point of time, the main porblem is that the number of regions to check in order to find out, is the total number of regions used on the server, which can be thousands and would make the execution of buying commands somewhat costly. The second problem is that sometimes players get regions granted for some reason, on such servers one would need a different way of control.
It is easy to add however, so i think i will simply make it an option.
I could also try to let rbuy keep track of the number of regions a player has (bought or sold) and just remember that and decide upon that count. Could be extended by checking all regions sometimes on startup maybe.
I also want to build in at least ebans database support.