Obole
OBOLE
OBOLE works like a charm under Bukkit/Spigot 1.7.10 ! \o/
Obole is a donation plugin based on Donator made by chaseoes, and works with Paypal IPN.
Donators receive their perks immediatly after donation OR when they execute a command.
Config what you want.
Features
- Setup multiple packages and define a list of commands for each.
- Ability to define an amount of time in which the package will "expire".
- Obole check database everytime you want ( configuration ) if you receive a donation ( IPN )
- Players do not have to be online when donating, commands could be execute immediatly after donation
- OR you could waiting that the player execute command /ob get to receive perks ( ideal for full inventory )
- open source - you have full control over the plugin.
- Secure.
- Define a wall of donator with a wand
- A switchable sandbox mode to test your configuration ( ipn.php and config.yml )
- Debug mode
- Translate in English and French
requirements
- mysql database
- a premium or business paypal account
- webserver or webhosting that support PHP
- a minecraft server \o/
Permissions & commands
When a player make a donation, Paypal send immediatly a notification to the ipn.php that you define in your Paypal account ( premium or business ) Obole check
- To get perks just type /ob get
You can also directly type /ob get accepted, (the first command is just a prevention to ensure that you have free space in your inventory)
Command | description | Permission |
---|---|---|
/ob get | to get your rewards | obole.get |
/ob get accept | get the rewards | obole.get.accept |
/ob recent | see the recent donations | obole.recent |
/ob check <id> | View the details of a donation | obole.check |
/ob checkplayer <player> | view details of a player | obole.check |
/ob setwall | Get the wand (golden axe) to define the donator wall | obole.setwall |
/ob reload | reload plugin | obole.reload |
Stuff
Usefull Links
- Source on GitHub
- Paypal IPN IPN
- HowTo use Paypal sandbox
- Find your currency
Our other plugins
- Deposite - save custom inventories or chests in a MySQL database, and restore it.
- CmdToRedstone - activate button and lever with command.
- Salary - pay salaries to your player's group via a permission, by day of week or day of month.
Trouble with sign wall.
I am testing with the sandbox and everything is working fine. I enabled the signwall, used a golden pickaxe after enabling signwall through /ob setwall and then right clicked on each corner of the wall with the golden pickaxe.
Now when I donate, I get this error in the console:
20:41:17 [SEVERE] Could not pass event DonateEvent to Obole v1.8 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 me.monnierant.obole.Obole.checkForDonations(Obole.java:188) at me.monnierant.obole.Obole$1.run(Obole.java:831) at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:513) 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.IllegalArgumentException: Name cannot be null at org.apache.commons.lang.Validate.notNull(Validate.java:203) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.getWorld(CraftServer.java:819) at me.monnierant.obole.Obole.updateSignWall(Obole.java:964) at me.monnierant.obole.DonateEventListener.onDonate(DonateEventListener.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 12 more
I tried looking through your the source code, but it looks like it hasn't been updated in a while; I couldn't find the line in Obole.java that the stack trace referred to.
Thanks for any help!
And what if i want to make some packages that are like the same price, but give differnet items? For example, i have 1 that cost 5$ and you get a premium rank, and one that cost 5$, and you get 64 diamonds
I am looking into replacing BuyCraft with either this plugin or Donator, but I am wondering what the advantages of this plugin are compared to chaseoes' Donator plugin.
and thats all folkes
onlineCommande=get comand=at connection
@MonnierAnt
Okay I assume it's the onlineCommands: section. Is this correct? I thought these commands were execute immediately when the player joins without them having to enter any command first.
Do I need a notify_url in my shop.php file.
@mace68 you have not looked everywhere it's in the config.yml
OK I've looked everywhere. Where do I define the perks a player receives when they do /ob get?
I don't think it's in our part. Check tour configurations file for accessing to your bdd. Otherwise go to https://developer.paypal.com/ for more information.
@MonnierAnt
I have tested it and it doesn't give me the rank that I am suppose to get. I am using group manager as my permissions plugin and the command is /manuadd <player> <group>
The submit button seems to be correct. You can test it now.
<HTML> <HEAD> <TITLE>Mission Minecraft Shop</TITLE> </HEAD> <BODY> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="B94E7LNUGXY54"> <table> <tr><td><input type="hidden" name="on0" value="Donator= $1.00">Donator= $1.00</td></tr><tr><td><input type="text" name="os0" maxlength="200"></td></tr> </table> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> <input name="notify_url" value="https:///ipn.php" type="hidden"> Please Type Minecraft Name in the Box to the Right <input type="text" size="60" name="custom" value="Minecraft username"> </FORM> </BODY> </HTML>
Is this how you put the notify url, but with the ip
Yheap
@MonnierAnt
Thank you very much. Then one would have to paste the code this:
In another page for example donate.php right?. What else is all right has not. Thank you very much!
@dragonl you have merge things that dont be linking. config.php just help you to config some bdd information. Paypal button must be included in a web page of your website not in config.php beacause nobody could see this page. you must put them in donate.php for exemple
@dragonl
1) 1$ => 1$ pack ; 3$=> 3$ pack if it exist if not it will give nothing. 2) cumulative package is for passing from one package to another
When setting up the files for the website, I do not quite understand. In the file "ipn.php" no configuration at all did I not.
I created a donation button on Paypal.es. And I've stuck in "config.php" with the line: "<input type="text" size="60" name="custom" value="Minecraft username">"
I hit here as I have the config.php:
Help please = (
I have several questions to see if you can help me.
1) If I have a pack that costs $ 1, and the user donates $ 3, is would give 3 packs or just one?
2) Do not quite understand the option "cumulativepackages: true" means that if a user eg user for a month VIP and before passing month? Pay another VIP package be activated once the first?
Thanks in advance!
@DurableCraft
Obole communicate with ipn.php through a mysql database.
Configure it in ipn.php and in config.
http://dev.bukkit.org/server-mods/obole/pages/configuration-config-yml/
http://dev.bukkit.org/server-mods/obole/pages/config-php/