XPKeeper
XPKeeper lets you save and retrieve your current XP level by clicking on a sign.
Yes, I know there are quite a few XP bank type plugins out there, but I wanted one without any other plugin dependencies, and one that was simple to use without any economy features - I just want to save my XP, so I don't lose it - no need for anything else.
Quote from eccentric_nz:Still alive! Get builds here: http://tardisjenkins.duckdns.org:8080/job/XPKeeper/
How does it work?
XPKeeper is sign based, you place a sign post or wall sign and put [XPKeeper] on the first line. The text between the square brackets can be changed by editing the config file and is case-insensitive.
- To save your XP (both LEVEL and EXPERIENCE), LEFT-click the sign with nothing (AIR) in your hand. Your XP will be transferred to the sign and will disappear from the HUD.
- If you gain more experience, just LEFT-click the sign again to add the current amount to the existing saved XP.
- To withdraw some XP, RIGHT-click the sign with nothing (AIR) in your hand. The amount you withdraw is set in the config file (5 levels by default). To withdraw all your XP, RIGHT-click the sign while SNEAKING.
NOTE You can configure the plugin so that you don't have to click with your fist, but it saves mistakenly placing a block :)
Videos
Removing an XPKeeper sign
XPKeeper signs cannot be removed by breaking them. You must use a command instead. Type:
/xpkremove
And then click on the sign you want to remove. You must have nothing (AIR) in your hand.
You can only remove your own signs.
Other features
- You may have one XPKeeper sign per server world
- XPKeeper signs are protected from explosions and griefing
Configuration
There are some configuration options:
firstline: XPKeeper
This determines what must be inside the square brackets on the first line of the sign, you could change this to 'Bank' for instance.
must_use_fist: [true|false]
This determines whether you must use your fist to click the sign.
set_limits: [true|false]
This determines whether the deposit limit feature is enabled.
limits: - 30 - 50 - 100
If set_limits
is true, set the limits used by the xpkeeper.limit.[amount]
permission nodes here.
withdraw: [amount]
Set the amount of XP levels you will withdraw when you right-click the sign. Set to 0
to use the old behaviour of withdrawing all your XP.
messages: deposit: You deposited %d XP and have reached level %d :) withdraw_all: You withdrew all your XP! withdraw_some: You withdrew %d XP Levels! [...]
Use this to localise the player messages in game. Some message strings contain the symbols %s
and %d
these must not be removed as they are replaced in game with values calculated in real time. You can move them to any position that makes sense with the message.
A French translation courtesy of DragonSlayer875 can be found here
Permissions
There are some:
xpkeeper.use
- allow players to make XPKeeper signs, default: TRUE
xpkeeper.fist
- allow players to use the /xpkfist
command, default: OP
xpkeeper.pay
- allow players to use the /xpkpay
command, default: OP
xpkeeper.force
- allow players to use the /xpkforceremove
command, default: OP
xpkeeper.admin
- allow players to use the /xpkgive
, /xpkset
and /xpkwithdraw
commands, default: OP
xpkeeper.editsign
- allow players to edit signs, default: OP
xpkeeper.limit
- allow players to use the /xpklimit
command, default: OP
xpkeeper.limit.[amount]
- limit the amount of level a player a player can deposit up to, [amount]
must match one of the limit
options in the config
xpkeeper.limit.bypass
- allow players to by pass deposit limits, default: OP
Commands
There are seven:
Command | Description | Alias | Permission |
---|---|---|---|
/xpkremove |
Use to remove your XPKeeper sign, see Removing an XPKeeper sign above |
/xpkr |
- |
/xpkfist |
Toggle the must_use_fist config optionbetween true and false or vice versa |
/xpkf |
xpkeeper.fist |
/xpklimit |
Toggle the set_limits config optionbetween true and false or vice versa |
/xpkl |
xpkeeper.limit |
/xpkwithdraw [amount] |
Set the withdraw config optionto the amount of levels specified |
/xpkw |
xpkeeper.admin |
/xpkreload |
Reload changes to the config | /xpkrl |
xpkeeper.admin |
/xpkgive [player] [amount] |
Add XP to a player | /xpkg |
xpkeeper.admin |
/xpkset [player] [amount] |
Set a player's total XP amount | /xpks |
xpkeeper.admin |
/xpkpay [player] [amount] |
Pay a player some XP | /xpkp |
xpkeeper.use |
/xpkforceremove [player] |
Use to remove all XPKeeper data for the specified player from the database. When using the command from the console, you must specify a player name, otherwise it runs using the player that types the command. USE WITH CARE! |
/xpkfr |
xpkeeper.force |
To do
- Link signs between worlds?
- Add config option to limit signs per player
Stats
Basic statistics are collected by this plugin using MCStats / Plugin Metrics , such as:
- Java Version
- Operating System
- System Arch
- Global Statistics - player and server counts
- Server Locations
- Game Version the game version - or Minecraft Version - servers are on
- Server Software - the server software - such as CraftBukkit - servers are running
You can opt out at any time by setting opt-out: true
in plugins/PluginMetrics/config.yml
Change log
Get new builds here: http://tardisjenkins.duckdns.org:8080/job/XPKeeper/
v1.4
- Requires CraftBukkit 1.7.5 or higher
- [In preparation for Minecraft/CraftBukkit 1.7.6/7/8] we have switched to using player UUIDs instead of names when storing and retrieving XP
- The plugin will automatically backup and update the XPKeeper database
- When the updating takes place the plugin will connect to api.mojang.com to lookup player UUIDs - this make take some time if you have a large number of users
- The server must be in online mode!
v1.3.10
- Fixed a bug with setting XP limits and PermissionsEx
v1.3.9
- Added the ability to colour the first line of the sign - set
firstline_colour
to a colour code (&2, &c etc) in the config, or use the commandxpkc [colour code]
Note colour will only apply to newly created signs.
v1.3.8
- Fixed startup errors with CraftBukkit 1.7.2-R0.3 #2978 and higher
v1.3.7
- Fixed a String format error when using the
/xpkpay
command
v1.3.6
- Signs (and the blocks they may be attached to) can no longer be destroyed by pistons
v1.3.5
- Added
/xpkreload
command to reload changes made to the config file
v1.3.4
- Fixed
firstline
config option not being set when the plugin is run for the first time - Added configurable deposit limits
- Enable the feature with
set_limits: true
- command is/xpklimit
to toggle true|false - Set a range of maximum level limits in the config, then give players/ranks the permission
xpkeeper.limit.[one of the configured amounts]
- Bypass the limit setting (if enabled) with the permission:
xpkeeper.limit.bypass
(default OP) - If a player's currently held XP would boost the XPKeeper XP over the limit, then the plugin deposits as much as it can (up to the level limit) and leaves the rest with the player
- Enable the feature with
v1.3.3
- Added configurable strings to the config so you can change the language used to message players
v1.3.2
- Fixed a problem with player names that don't fit on a sign (> 15 characters)
v1.3.1
- Changed all SQL to use prepared statements so that world names can have apostrophes in them
v1.3
- Added configurable withdrawal amount.
- Set the amount (in levels) in the config with
withdraw: [amount]
- To keep the old behaviour of withdrawing all your XP, set
withdraw: 0
- To withdraw all your XP regardless of the
withdraw
amount, right-click the XPKeeper sign while sneaking
- Set the amount (in levels) in the config with
- Added command
/xpkwithdraw [amount]
to set the withdrawal amount in the config. - Added some feedback messages.
- Fixed - when removing an XPKeeper sign with
/xpkremove
you now get all your XP back and the sign drops naturally. - Fixed - only the player whose name is on the sign can interact with it.
- Updated to Bukkit 1.4.6-R0.4-SNAPSHOT
v1.2.3
- Added
/xpkpay [player] [amount]
to pay a player some XP
v1.2.2
- Added command
/xpkgive [player] [amount]
to add XP to a player - Added command
/xpkset [player] [amount]
to set a player's total XP amount
v1.2.1
- Added permission
xpkeeper.force
for the command/xpkforceremove
v1.2
- Built with Bukkit 1.4.5-R0.3-SNAPSHOT
- Added command
/xpkforceremove
to delete all player data from the database USE WITH CARE When using the command from the console, you must specify a player name, otherwise it runs using the player that types the command. - Added plugin metrics
- Correctly nested permissions, so that the plugin is not clearing the first line of signs
v1.0.2
- Built with Bukkit 1.4.5-R0.1-SNAPSHOT
- When making an XPKeeper sign, the first line is case-insensitive so
[XpKeEpeR]
and[xpkeeper]
are now both valid - Improved sign grief prevention
- Added config option so that you can use anything to click the sign (bit of a pain when you right-click the sign with a placeable block, but at least you now have the option) - set
must_use_fist
tofalse
to click with anything - Added permission
xpkeeper.use
The default is OP. You must have this permission in order to create an XPKeeper sign
v1.1
Includes all the v1.0.2 changes as well as:
- Changed the formula for storing and retrieving XP, the sign now respects the fact that higher levels require more XP
- Added command
/xpkfist
to toggle the config optionmust_use_fist
true or false - Added permission
xpkeeper.fist
The default is OP. You must have this permission to use the/xpkfist
command
What it looks like
Now first of all, I want to say that this plugin works like a charm.. A nice simple way of "banking" XP.. but i do have a question and i figured i could get the answer quicker here then doing a trial by error on the server.. So.. lets say you have you 20 levels banked on the sign and you deposit 15 more.. That would bring you up to roughly 35lvls give or take the amount of exp that was added.. Now.. being that the level cap is 30 in minecraft.. Would right clicking the sign give you the full 35 thus breaking the 30 level cap.. or would it give you the max allowed, 30, and keep the other 5 or so in the sign for later use?
Updates made!
Version 1.0.2 is your basic upgrade, should be no issues...
Version 1.1 is NOT COMPATIBLE with earlier versions - remove your XP from the XPKeeper sign before upgrading - you have been warned!
@jjslammer12
@simplimazing
There are currently no permissions... but adding one now for the next release:
xpkeeper.use
default will be
OP
Sorry all, forgot to subscribe to comments, will do some work on this in the weekend
Could you make this permission based, so I can control which players are able to create these signs.
Please change to saving xp instead of levels. Because for the higher levels you need more xp. But with this you can add to level 100 100 levels again and you have 200 levels instead of normal 133.
That is XP-cheating
Please author, tell me you're working on some features. Or did you leave us?
Edit1: Also add a feature so you can rightclick or leftclick with any kind of item/block in your hand, not only with bare hands (that's stupid)
Hi, Could you please post a list of permissions nodes, because i am having trouble with giving players on my server to use the plugin.
Works perfectly. Can you change it so it's not case sensitive? So if people type in [xpkeeper] it'll also work? And [xPkeEpeR] for example will do too? Would be so great and the perfect plugin then.
I prefer this over every other exp bank/keeper plugin, because you only use right- and leftclick and it doesn't save lvls and XP instead. Saveing lvls is very glitchy. Thank you so much!!!
Edit 1: Maybe also have rightclick only withdraw 1 lvl each click? Or a set amount in the config?