BuyCommand
Many of us like Command iConomy. This is the Vault version of this great plugin since Kostronor does not seem to maintain his plugin anymore.
What does it do?
- In the configuration file you can set which commands will cost players something and how much. You could, for example, define that the /tp command will cost 25 Credits (or whatever your currency might be).
- This plugin uses Vault
Features
- Define a regular expression to fetch any command string.
- Define cost (or payment) for executing this command.
- Define per-command groups that are excluded or are the only groups who pay for the command.
Help
Planned features
- Command cost cooldown (wait a certain time for the command to be charged again).
- Cost of 0 stops processing (like Command iConomy).
- DOC: Some more explanations on regular expressions.
Doesnt wotk 1.12.2 !!
Doesn't work on 1.8.7
@tecno_wizard
I'm sorry but this not the same functionality as this plugin. With this one, youn can charge a command every time it is use. Yous plugin allow to buy a command and then to use it for free, it's a big difference!
@joybab3
This would mean one of two things: 1- Your config or save file is corrupt. 2- The plugin is broken (less likely)
please update!
Aww its the Very Very Very baby version of essentials economy! :)
Every time I change chargeOps to false, it resets it to true when I start up my server. This is really frustrating! Can you help me?
please help this plugin spams my console with 9:09:41 PM [SEVERE] Could not pass event PlayerCommandPreprocessEvent to BuyCommand v1.0.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_5_R3.PlayerConnection.handleCommand(PlayerConnection.java:963) at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.java:889) at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:846) at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:115) at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException at de.beimax.buycommand.BuyCommandProcessor.processCommand(BuyCommandProcessor.java:32) at de.beimax.buycommand.listeners.BuyCommandPlayerListener.onPlayerCommandPreprocess(BuyCommandPlayerListener.java:58) at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 16 more
Yea.. this is the full log entry O.o See here: http://www10.pic-upload.de/11.05.13/fji4c9bpsi9.png Server Version: Bukkit #2771 (1.5.2 Beta Build) BuyCommand: 1.0.1 Vault: 1.2.25 The only plugins I have on my test server...
@MGbeenieboy
Can you paste the exact log entry? Also: Server version, etc.
I tested it on a test server with only this plugin and vault on it. Enabling BuyCommand v1.0.1 BuyCommand v1.0.1 is loading Disabling BuyCommand 1.0.1 BuyCommand v1.0.1 is shutting down
I haven't checked, so it may be there already. But can you make a setting that will send all the paid money to a specified iconomy account? Thank
Does it work with signs?
Say I have a sign-command plugin which executes a command if you right-click the sign.
On the sign I have the command /pex user %p group set Miner
would it then work to have this plugin charge money to use the sign?
Thanks for any replies :)
Can I set cost as an item? Please answer.
I just found out my players could subvert my command costs by uppercasing the command. Which of course makes sense, since my regex was wrong.
So just a tip: If you have a command cost that is say: /time \S+
To prevent people from getting around this with caps, use: /[Tt][Ii][Mm][Ee] \S+
And then make sure you remove the original '/time \S+', otherwise a player ends up getting charged twice.
Plugins using regex never cease to amaze me.
6:17:49 PM [INFO] [BuyCommand] Enabling BuyCommand v1.0.1 6:17:49 PM [INFO] BuyCommand v1.0.1 is loading. 6:17:49 PM [WARNING][BuyCommand] Warning: Could not write sample_config.yml - reason: plugins\BuyCommand\sample_config.yml (The system cannot find the path specified)
EDIT: Config appeared after restarting the server another time.
@Spatchcock
Should be generated automatically.
Quick question: Where's the config file? I only have 2 language files...
Ok... now i have other error.
When i open the server, "buy command" load without problems but, it shuts down inmediately.
I have an error:
http://pastebin.com/nL7Pcq7x
List of plugins: worldguard, worldedit, vote, vault, stargate, showcasestandalone, permissionsex, modifyworld, essentials, essentialsprotect, essentialsspawn, chatmanager, buycommand.
I need any solution for this, plz. THANKS!