diff options
author | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-15 16:23:50 +0100 |
---|---|---|
committer | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-15 16:23:50 +0100 |
commit | 04dff4882a3d75f3a0d432fb3377cc3f59fdf251 (patch) | |
tree | fca7853f6f6e69cc3e1b75b958ced35ba82712fa /MCServer | |
parent | Merge remote-tracking branch 'upstream/master' into playerxp (diff) | |
download | cuberite-04dff4882a3d75f3a0d432fb3377cc3f59fdf251.tar cuberite-04dff4882a3d75f3a0d432fb3377cc3f59fdf251.tar.gz cuberite-04dff4882a3d75f3a0d432fb3377cc3f59fdf251.tar.bz2 cuberite-04dff4882a3d75f3a0d432fb3377cc3f59fdf251.tar.lz cuberite-04dff4882a3d75f3a0d432fb3377cc3f59fdf251.tar.xz cuberite-04dff4882a3d75f3a0d432fb3377cc3f59fdf251.tar.zst cuberite-04dff4882a3d75f3a0d432fb3377cc3f59fdf251.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/Debuggers/Debuggers.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua index 7b1217b95..badce8508 100644 --- a/MCServer/Plugins/Debuggers/Debuggers.lua +++ b/MCServer/Plugins/Debuggers/Debuggers.lua @@ -46,6 +46,7 @@ function Initialize(Plugin) PluginManager:BindCommand("/arr", "debuggers", HandleArrowCmd, "- Creates an arrow going away from the player"); PluginManager:BindCommand("/fb", "debuggers", HandleFireballCmd, "- Creates a ghast fireball as if shot by the player"); PluginManager:BindCommand("/xpa", "debuggers", HandleAddExperience, "- Adds 200 experience to the player"); + PluginManager:BindCommand("/xpr", "debuggers", HandleRemoveXp, "- Remove all xp"); -- Enable the following line for BlockArea / Generator interface testing: -- PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_GENERATED); @@ -852,3 +853,13 @@ function HandleAddExperience(a_Split, a_Player) return true; end + + + + + +function HandleRemoveXp(a_Split, a_Player) + a_Player:SetExperience(0); + + return true; +end |