XP Deposit
Easy way to store your XP
Features
- Easy way to deposit, withdraw XP from storage,
- Easy way to give other player XP
- Deposits based on players experience
- Supports Vault
Commands | Aliases | Permission | Description |
---|---|---|---|
/xpd deposit | d/dep | xpd.deposit | - Deposits xp to the storage |
/xpd withdraw | w/withdraw | xpd.withdraw | - Withdraws xp from the storage |
/xpd balance | b/bal | xpd.balance | - Shows you the amount of stored xp |
/xpd balancetop | baltop | xpd.balancetop | - Shows top 10 players with highest balance |
/xpd give | g/give | xpd.give | - Gives the xp to another player. |
ADMIN COMMANDS:
Commands | Permission | Description |
---|---|---|
/xpd xp set | xpd.admin.set | - Sets the balance to a specific number |
/xpd xp give | xpd.admin.give | - Gives XP to the player |
/xpd xp take | xpd.admin.take | - Takes XP from players account |
/xpd xp reset | xpd.admin.reset | - Resets players balance |
/xpd info | xpd.info | - Gives you all info about player |
NOTE:
Best way to withdraw all levels from storage is by using command /xpd w all or for depositing /xpd d all
Other permissions:
xpd.* - gives you access to all xpd commands! (including admin commands)
xpd.normal.* - gives you access to xpd commands (not including admin commands)
xpd.keepxp - If player dies, he keeps his XP level on him (If enabled in config.yml)
Vault
Since version v4.2.0 XP-Deposit supports vault, you can enable it in config.yml by setting economy to true.
Quote from Version 4.3.1 (Release) July 21, 2019:
- Fixed exception when user joins for the first time
config.yml
################################
# #
# XP-Deposit by #
# Stipess1 #
# #
################################
# After editing reload config with /xpd reload
# DO NOT TOUCH config-version !
config-version: 1.3
# This enables & disables sound effects when player receives,sends,withdraws, etc.. XP.
# If you don't want to have sound for particular command leave it blank -> sound-recive:
# For more sounds check https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
sound-effects: true
# sound-effects needs to be set on true in order to play sounds.
sounds:
# When player receives XP.
sound-receive: ENTITY_EXPERIENCE_ORB_PICKUP
# When player sends XP.
sound-send:
# When player withdraws XP.
sound-withdraw:
# When player deposits XP.
sound-deposit:
# When player opens an account.
sound-acc:
# Automatic updates true (enabled), false (disabled)
auto-update: true
# Sets a minimum level deposit
# to disable it leave it at 0, max is 30
min-deposit: 0
# Allows a player with specific permission
# To deposit specific amount of XP, you can set default number down below
# Player needs 'xpd.deposit.limit' before they can deposit XP!
# Player needs permission 'xpd.deposit.limit.' to deposit more than default
# If you want to remove XP limit, give people 'xpd.deposit.limit.unlimited'
deposit-limit:
default: 120
vip: 240
mod: 360
# On player death keep XP if they have the permission 'xpd.keepxp'
# If this is set to false and players have permission, XP will be dropped.
keep-xp: false
# This sets the XP starting balance when creating an account
balance-start: 0
# When player reaches certain XP level, XPD will deposit it automatically
# if players haves permission 'xpd.deposit.auto', This will set the minimum limit for auto-deposit
auto-deposit-limit: 5
# If set to true server will use XP-Deposit as economy plugin
economy: false
messages.yml
STARTING_BALANCE: "&aYou get &2{BALANCE}&a XP as starting balance."
ON_CREATE_ERROR: "&4Error: &cYou have already created an account."
NO_PERMISSION: "&4Error: &cYou don't have permission to use this command!"
NOT_VALID_NUMBER: "&4Error: &cEnter a valid number."
DEPOSIT_SUCCESS: "&aDeposit successful!"
NOT_ENOUGHXP: "&4Error: &cYou don't have enough XP."
WRONG_DEPOSIT: "&4Error: &cUsage: /xpd deposit "
OPEN_ACC_FIRST: "&4Error: &cUse: /xpd create"
WITHDRAW_SUCCESS: "&aWithdraw successful!"
WITHDRAW_ERROR: "&4Error: &cUsage: /xpd withdraw "
PLAYER_DOESNT_EXIST: "&4Error: &cPlayer doesn't exist."
BALANCE_PRIVATE: "&aBalance of &2{PLAYERNAME}&a is &c private"
ACC_NOT_OPEN: "&4Error: &cPlayer hasn't open an account yet!"
XP_WRONG_USE: "&4Error: &cUsage: /xpd xp [set:take:reset:give]"
ADMIN_SET_XP: "&aYou have set &2{PLAYERNAME}&a balance to &2{BALANCE} &aXP."
PLAYER_SET_XP: "&2{PLAYERNAME} &ahas set your balance to &2{BALANCE} &aXP."
ADMIN_TAKE_XP: "&aYou have taken &2{BALANCE}&a XP from &2{PLAYERNAME}&a balance."
PLAYER_TAKE_XP: "&2{PLAYERNAME}&a has taken &2{BALANCE}&a XP from your balance."
ADMIN_RESET_XP: "&aYou have reset balance of &2{PLAYERNAME}."
PLAYER_RESET_XP: "&2{PLAYERNAME}&a has reset your balance."
ADMIN_GIVE_XP: "&aYou added &2{BALANCE}&a XP to {PLAYERNAME} &abalance."
PLAYER_GIVE_XP: "&2{BALANCE}&a XP has been added to your account."
MINIMUM_DEPOSIT: "&4Error: &cMinimum deposit level is {LIMIT}!"
BALANCE_CHECK: "&aBalance of &2{PLAYERNAME}: &a{BALANCE} &2XP."
BALANCE: "&aBalance: &2{BALANCE} &aXP"
RECEIVER_OFFLINE: "&4Error: &cPlayer is not online or doesn't exist!"
GIVEXP_YOURSELF: "&4Error: &cYou can't give yourself XP!"
XP_SENT: "&aYou have sent &2{BALANCE}&a XP to &2{PLAYERNAME}."
XP_RECEIVED: "&2{PLAYERNAME} &ahas given you {BALANCE} XP."
GIVE_ERROR: "&4Error: &cUsage: /xpd give "
XPD_RELOAD: "&aConfig file successfully reloaded!"
UNKNOWN_COMMAND: "&4Error: &cUnknown command type: /xpd help"
INFO_WRONG: "&4Error: &cUsage: /xpd <i/info> "
LIMIT_REACHED: "&4Error: &cYour limit is {LIMIT} XP."
LIMIT_PERMISSION: "&4Error: &cYou need &a'xpd.deposit.limit'&c permission in order to use this command."
LIMIT_GIVE: "&4Error: &c{PLAYERNAME} &chas reached the limit ({BALANCE})."
DEPOSIT_TGG_OFF: "&aYou have toggled auto-deposit to &cOFF"
DEPOSIT_TGG_ON: "&aYou have toggled auto-deposit to &2ON"
TGG_WRONG_ARGS: "&4Error:&c Usage: /xpd toggle [number]"
MIN_AUTO_DEPOSIT: "&4Error:&c Minimum auto-deposit limit is {LIMIT}"
TGG_LIMIT_CHANGED: "&aYou have changed your auto-deposit limit to &2{LIMIT}"
TGG_LIMIT_ALRSET: "&4Error:&c Your auto-deposit limit is already set to &2{LIMIT}"
Plugin uses bStats
By default, bStats sends the following data:
- Your server's randomly generated UUID
- The amount of players on your server
- The online mode of your server
- The bukkit version of your server
- The java version of your system (e.g. Java 8)
- The name of your OS (e.g. Windows)
- The version of your OS
- The architecture of your OS (e.g. amd64)
- The system cores of your OS (e.g. 8)
- bStats-supported plugins
- Plugin version of bStats-supported plugins
Disabling bStats
If you don't want that your server sends data to bStats you can disable it by setting enabled to false in the bStats config file. The config can be found in the /plugins/bStats/config.yml file. bStats has nearly no effect on your server's performance and the sent data is completely anonymous so please consider twice if you really want to disable it.
Updater
This plugin uses Gravity's Updater which allows XP-Deposit to automatically download updates to new versions. If you wish to disable this or change how XP-Deposit handles the updating, you are free to do so by editing the plugin's configuration.
BUGS?
Does this work for 1.18.1?
In reply to HooshuD:
It should work.
Does this work for 1.17.1?
In reply to creeperplays2021:
It should work
does anyone know how I can access the permission on an apex hosting server and allow anyone on the server to use these commands (except for the admin only commands of course) I don't have luckperms installed or any other permissions plugin is there any way for me to access the permissions from the apex pannel.
Hello, can you default /xpd i to check own info?
In reply to Neubulae:
I will in next update
Hello, if anyone could please help me, I would greatly appreciate it. I have permissions ex and this plugin installed on my server but every time the default class tries to access any of the permissions, it says they do not have access. I am very new to this so if I am making a simple mistake an answer would be great. My permissions folder looks like this.
groups:
default:
options:
default: true
permissions:
-modifyworld.*
- xpd.normal.*
schema-version: 1
Hello! I am new to the plugins scene, and I am having an issue with this plugin in particular. Whenever I try to use any /xpd command, I get the message "An internal error occurred while attempting to perform this command. What can I do to fix this? I am using the latest version of bukkit and the latest version of this plugin.
In reply to kersqua:
Hmm works fine for me
Can you send me a log from the console?
In reply to 1Harvey:
16.07 14:32:59 [Server] Server thread/INFO Brdtrupio issued server command: /xpd d 5
16.07 14:32:59 [Server] Server thread/ERROR null
16.07 14:32:59 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'xpd' in plugin XP-Deposit v4.3.0
16.07 14:32:59 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:710) ~[spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1670) ~[spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1510) ~[spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:13) ~[spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:135) [spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:114) [spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.MinecraftServer.aW(MinecraftServer.java:898) [spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:891) [spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:123) [spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:875) [spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:808) [spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
16.07 14:32:59 [Server] INFO Caused by: java.lang.NullPointerException
16.07 14:32:59 [Server] INFO at com.stipess1.mc.commands.CommandManager.onCommand(CommandManager.java:781) ~[?:?]
16.07 14:32:59 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot_1.14.3.jar:git-Spigot-6e94473-7ad3a1f]
16.07 14:32:59 [Server] INFO ... 17 more
In reply to kersqua:
OKAY, so I fixed it. I do not know why, but rolling the version back to 4.1.1 then bringing it back to the latest fixed the issue, despite multiple reinstalls before-hand. Thank you for the wonderful plugin, it is truly a joy to use.
In reply to kersqua and 1Harvey:
I'm having the same problem kersqua had. I'm trying to set everything up so that it can work in a server owned by a friend of mine, running a 1.14.1 bukkit server. Would you mind sharing a few pointers in how to get the commands to work properly? I'd really appreciate the help x
In reply to Forge_User_78653422:
Try to replace bukkit server with a spigot
In reply to 1Harvey:
Ok, so I've got a Spigot server instead now, yet I still get the same errors - even after re-downloading the plugin.
Here is the error log - pretty much the same as kersqua's issue
https://pastebin.com/yk1zSW6c
There's probably another step I'm missing
In reply to Forge_User_78653422:
Okay seems like this is a bug..
Issue has been fixed in upcoming update
I am very new to plugins overall, so I am very confused as to how to make players who are not OPs able to use this plugin to deposit and withdraw etc. xp? How can I give them permission without making them OPs?
In reply to Forge_User_70333123:
I am having the same issue, if you have found a solution please let me know.
Permissions.yml read as follows:
------------------------
groups:
default:
options:
default: true
permissions:
- modifyworld.*
- xpd.deposit.limit.unlimited
- xpd.withdraw
- xpd.give
- xpd.balance
--------------------------
This will allow a few commands to work
/xpd give
/xpd withdraw
/xpd balance
And that's it.
I'm still missing a way for players to deposit XP.
I have tried multiple strings
xpd.deposit.*
xpd.normal.*
xpd.deposit.limit
xpd.deposit.unlimited
Any advice?
In reply to Zozureno:
In permissions you also have to add xpd.deposit.limit together with xpd.deposit.limit.unlimited