PaySwitch
PaySwitch is a simple plugin in which players can create buttons and levers. But those are not just normal buttons and levers, other player will have to pay to use them.
Features:
- Uses Vault, thus enabling the use of all mayor economy systems.
- Create multiple switches, each with their own price.
- Only the one who made a switch can destroy it.
- Supports bPermissions.
- Only 1 command
Commands:
- /bpay <Price>
How to make one:
First you must select a switch, with a blaze rod. The selected switch can be a Lever or a Button. After having selected one, you must type the command: /bpay <price> The <price> stands for the amount of money you want to let it cost. And that's it, nothing more.
How to delete one:
Simply destroy the switch if you are the owner.//
Bugs:
- Each time using your own lever, you pay to yourself.
- You can overwrite a switch.
- Players can use the switch even though they don't have money.
Movie incoming!
You guys, it isn't working because it is updated only to 1.0! It just will not work. Don't bother.
I have updated java, so I don't know why its not working.
http://gyazo.com/5e77e77bcb64bc534e001d33664fd9bb
Please do update or create another plugin alike... I got so much hanging on this plugin for my server :P
Ah, figured out what was wrong but you should fix the incompatibility with spout. I get this error if I try and destroy my own button: 2012-02-14 17:43:56 [WARNING] Failed to handle packet: java.lang.RuntimeException: Null pointer exception thrown when trying to process packet of type net.minecraft.server.Packet3Chat java.lang.RuntimeException: Null pointer exception thrown when trying to process packet of type net.minecraft.server.Packet3Chat at org.getspout.spout.SpoutNetServerHandler.syncedSendPacket(SpoutNetServerHandler.java:641) at org.getspout.spout.SpoutNetServerHandler.syncFlushPacketQueue(SpoutNetServerHandler.java:612) at org.getspout.spout.SpoutNetServerHandler.syncFlushPacketQueue(SpoutNetServerHandler.java:605) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:586) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) Caused by: java.lang.NullPointerException at org.bukkit.craftbukkit.TextWrapper.wrapText(TextWrapper.java:34) at net.minecraft.server.NetServerHandler.sendPacket(NetServerHandler.java:681) at org.getspout.spout.SpoutNetServerHandler.syncedSendPacket(SpoutNetServerHandler.java:637) ... 7 more
Sorry I disabled the plugin. No, there was no error. Just kicked from the server with the same generic connection reset prompt you get when the server is restarted or when you overload the CPU
@AquatikJustice
you get an error?
I'm having the same issue as 4135. Destroying any button or lever kicks me from the server. Only way to destroy it is to destroy the block it's attached to.
Also, if you destroy the button in the above way and put another block in it's place, then destroy it, you are still charged for "clicking the button"
Can i take a look at your server then?
lol op is totaly ignoring me
@GeoCraft
64 bits, redownload the plugin.
Java? I tried but still the same. I also am running on a 64 bit system so should I use the 64 bit java or 32.
@GeoCraft
hmmm, redownload
Hmm, still got this error when I tried updating
[SEVERE] Could not load 'plugins\BlockPay.jar' in folder 'plugins': java.lang.ClassNotFoundException: BlockCat.battlemc.BlockPay.BlockPay at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:170) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:151) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:127) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
after the update i got kicked from the server wen i try to destroy ANY button/level also nun used ._.
@GeoCraft
That's because you have an older java version. try updating it.
I get this error when I try to load the plugin:
SEVERE] Could not load 'plugins\BlockPay.jar' in folder 'plugins': java.lang.UnsupportedClassVersionError: BlockCat/battlemc/BlockPay/BlockPay : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:170) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:151) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:127) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
AWESOME PLUGIN thats what i need man.
but sorry i have some request also it would be awesome to give a player money for press a button or levler. And also an cooldown timer would be awesome love this plugin so much