xpShop
Link to the german overview of xpShop: klick here
General:
Players can buy, send, and sell experience points which can be used to enchant items. Also it can display the player's amount of XP. XP levels can be sold and bought with sign shops.
This plugin will automatically update itself if “autodownload” is set to true in the config file and will force an update if a bug is found! Macht es das auch, wenn autodownload auf false ist?
Players can send XP to each other across multiple servers. To use this feature, you need a database that can be accessed from each server. You then enter this database into each config file and set “usedbtomanageXP” to true.
You do not need MySQL, however, you can use MySQL to manage XP between one or more servers. To do this you must use the same MySQL Database on all of the servers.
COMMANDS for ADMINS that use the database:
/xpShop reset <player> - Resets the xp of that player in the database
/xpShop setXP <player> - Sets the xp of that player in the database
Features:
- players can fill glass-bottles with XP/EXP
- players can buy/sell XP/EXP using a command
- players can buy/sell XP/EXP-levels using a command
- players can look up their own amount of XP or XP-level.
- players can look up other players' amounts of XP or XP-levels.
- players can lookup their own XP/EXP-level amount
- players can lookup the XP/EXP-level amount of others
- players can send XP/EXP to other players.
- players can teleport themselves to an other player for XP/EXP.
- players can teleport players to themselves for XP/EXP.
- players can repair tools for xp.
- admin can repair tools for free.
- players can create safes to store XP/EXP in signs.
- players can create xpShops to sell and buy XP/EXP with sign. They work like SignShops.
- admins can create xpShop adminshops to sell and buy XP/EXP with sign.
- admins can set a player's amount of XP.
- admins can view the logs ingame. :) (/xpShop showdebug)
Planned features:
Installation instructions:
The language can be chosen and modified in the config.yml file.
To install the plugin, drop it into the plugin folder.
Economy System Dependencies | Permissions Dependencies |
---|---|
iConomy 5 | PermissionsEX |
iConomy 6 | BukkitPermissions |
Vault | GroupManager |
Register | bPermissions |
Links:
Link | Description |
---|---|
Wiki | The github wiki of xpShop |
SignShop Wiki | Explanation of the shop feature. |
xpShopSafe Wiki | Explanation of the safe feature. |
Commands and Permission nodes | A list of all commands and Permissions nodes: |
Source code + API | full code |
Default config | config.yml with comments |
GUI:
To edit the config while the server is running, type "xpShop gui" into the console.
Source code
Please ask before using the code, I am a friendly person :)
Sending of statistical data
This plugin uses mcstats.org to gather statistical data. The data is collected anonymously and ALL data is visible to everyone. Follow the link at the statistics banner and you'll see the collected data.
If you don't want any data to be sent, disable statistic sending in the Metrics folder/configuration.
Debug files and error reports
This plugin creates debug files to make the finding of errors easier for me. If a error occurs the plugin may report it to me. All error reports are visible on my tracker. Klick here.
You can modify /disable this behavior in the configuration file. Set senddebugfile to false if you don't want to send debugfiles to me.
Set senderrorreport to false if you don't want to send any debug/errors to me.
@ibhh
I actually thought the way I describe seemed pretty simple. But either way, a sign is a sign. =)
Also, does it have to use PermissionsEX, BukkitPermissions or GroupManager? Or can it use any permission system which Vault supports? For example bPermissions.
@SeoToX: I won't implement this, sorry, but nearly every server has a money system.
Can you please add the item prices to this plugin? I dont want to use any currency plugin, instead of currency, i want to buy for e.g iron /or/ gold.
@sharkale31
I think there shouldnt be a bug, but I've released a new Build with some bugfixes.
@ibhh
the only run thread you have. you read vars and call method outside the thread, in the check blacklist.
@sharkale31
Can you tell me the line because the log is cuted.
@Sacredox
Why so difficult? I do it like ChestShop, quite the same format.
stop reading vars outside of the thread
@ibhh
You could have the sign at the top line [BuyXP] Then 2nd line and 3rd line can be anything and 4th line can be the amount of xp
And then [SellXP] with the same thing.
@iTzVien
How should this look like? Discribe better.
Please notice:
if you have a 5.X version and use the db, edit the config.yml to this:
TaskRepeat: 20
DelayTimeTask: 20
You should make this into sign shops like just punch in sign to buy exp and sell exp
@Da_Bozz
You cant write into line 4 e.g "200:", you should "200:0"
Always getting this errror:
2012-02-26 00:31:33 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 1
2012-02-26 00:31:33 [SEVERE] at me.ibhh.xpShop.xpShopListener.blockIsValid(xpShopListener.java:438)
2012-02-26 00:31:33 [SEVERE] at me.ibhh.xpShop.xpShopListener.aendern(xpShopListener.java:42)
2012-02-26 00:31:33 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-02-26 00:31:33 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-02-26 00:31:33 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-02-26 00:31:33 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
2012-02-26 00:31:33 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
2012-02-26 00:31:33 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
2012-02-26 00:31:33 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
2012-02-26 00:31:33 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1101)
2012-02-26 00:31:33 [SEVERE] at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:41)
2012-02-26 00:31:33 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
2012-02-26 00:31:33 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
2012-02-26 00:31:33 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:552)
2012-02-26 00:31:33 [SEVERE] at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
2012-02-26 00:31:33 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
2012-02-26 00:31:33 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
2012-02-26 00:31:33 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
Nice plugin, thanks for it.
@Switch0r
Is fixed.
Bugs should be fixed in version 3.3
I test your bug today. You bought on your own shop? And get Xp? Then I ve fixed that in a not public dev build, but today there is a public, promised.
Seems like the xp sign shops can be used to dupe xp for yourself. I created one
[xpShop] kahlilnc 50 10:8
Then gives me the xp when I click on the sign and doesnt take my money from me.
Idk if I am getting the right idea about the sign shops XD Is it suppose to take xp from the owner of the shop and give it to the buyer?
Can BukkitPermissions *, I dont know.