summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-11-17 23:12:09 +0100
committerMattes D <github@xoft.cz>2013-11-17 23:12:09 +0100
commitd169a1959dc5b6faa7033c78c9afd6f4c4eae604 (patch)
tree2a233fa7dc2b9f5fd4c9a5e040850313546403e5 /MCServer
parentLineBlockTracer: Using the coord-based block faces. (diff)
parentfix *.sdf? (diff)
downloadcuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar.gz
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar.bz2
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar.lz
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar.xz
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.tar.zst
cuberite-d169a1959dc5b6faa7033c78c9afd6f4c4eae604.zip
Diffstat (limited to 'MCServer')
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua
index a13820eff..9350606cc 100644
--- a/MCServer/Plugins/Debuggers/Debuggers.lua
+++ b/MCServer/Plugins/Debuggers/Debuggers.lua
@@ -45,6 +45,8 @@ 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");
+ PluginManager:BindCommand("/xpr", "debuggers", HandleRemoveXp, "- Remove all xp");
-- Enable the following line for BlockArea / Generator interface testing:
-- PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_GENERATED);
@@ -846,3 +848,18 @@ end
+function HandleAddExperience(a_Split, a_Player)
+ a_Player:DeltaExperience(200);
+
+ return true;
+end
+
+
+
+
+
+function HandleRemoveXp(a_Split, a_Player)
+ a_Player:SetCurrentExperience(0);
+
+ return true;
+end