summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authorDaniel O'Brien <marmot.daniel@gmail.com>2013-11-14 22:35:02 +0100
committerDaniel O'Brien <marmot.daniel@gmail.com>2013-11-14 22:35:02 +0100
commitf6e16ce15082d867ed182690e3a80435cf60dc84 (patch)
treebd6cdcbcdac65ad2528ff87829b80181a44516cc /MCServer
parentfixed XpGetPercentage (diff)
downloadcuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar
cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar.gz
cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar.bz2
cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar.lz
cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar.xz
cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.tar.zst
cuberite-f6e16ce15082d867ed182690e3a80435cf60dc84.zip
Diffstat (limited to 'MCServer')
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua
index 04a15a002..119e1525e 100644
--- a/MCServer/Plugins/Debuggers/Debuggers.lua
+++ b/MCServer/Plugins/Debuggers/Debuggers.lua
@@ -44,6 +44,7 @@ function Initialize(Plugin)
PluginManager:BindCommand("/fs", "debuggers", HandleFoodStatsCmd, "- Turns regular foodstats message on or off");
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");
-- Enable the following line for BlockArea / Generator interface testing:
-- PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_GENERATED);
@@ -839,3 +840,8 @@ end
+function HandleAddExperience(a_Split, a_Player)
+ a_Player->AddExperience(200);
+
+ return true;
+end \ No newline at end of file