diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-19 20:37:01 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-19 20:37:01 +0200 |
commit | 9dab3c4e8fad37d76bbed7a71888d582a047275a (patch) | |
tree | 7ed77a05ccb29594d0d1c8b8056458b0a558723a /MCServer/Plugins/Debuggers | |
parent | Inventory code cleanup, players can now see each other's armor (diff) | |
download | cuberite-9dab3c4e8fad37d76bbed7a71888d582a047275a.tar cuberite-9dab3c4e8fad37d76bbed7a71888d582a047275a.tar.gz cuberite-9dab3c4e8fad37d76bbed7a71888d582a047275a.tar.bz2 cuberite-9dab3c4e8fad37d76bbed7a71888d582a047275a.tar.lz cuberite-9dab3c4e8fad37d76bbed7a71888d582a047275a.tar.xz cuberite-9dab3c4e8fad37d76bbed7a71888d582a047275a.tar.zst cuberite-9dab3c4e8fad37d76bbed7a71888d582a047275a.zip |
Diffstat (limited to 'MCServer/Plugins/Debuggers')
-rw-r--r-- | MCServer/Plugins/Debuggers/Debuggers.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua index f3da1ed4b..c774f15d4 100644 --- a/MCServer/Plugins/Debuggers/Debuggers.lua +++ b/MCServer/Plugins/Debuggers/Debuggers.lua @@ -17,8 +17,9 @@ function Initialize(Plugin) PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_USING_ITEM);
PluginManager:AddHook(Plugin, cPluginManager.HOOK_TAKE_DAMAGE);
- PluginManager:BindCommand("/le", "debuggers", HandleListEntitiesCmd, " - Shows a list of all the loaded entities");
- PluginManager:BindCommand("/ke", "debuggers", HandleKillEntitiesCmd, " - Kills all the loaded entities");
+ PluginManager:BindCommand("/le", "debuggers", HandleListEntitiesCmd, " - Shows a list of all the loaded entities");
+ PluginManager:BindCommand("/ke", "debuggers", HandleKillEntitiesCmd, " - Kills all the loaded entities");
+ PluginManager:BindCommand("/wool", "debuggers", HandleWoolCmd, " - Sets all your armor to blue wool");
-- Enable the following line for BlockArea / Generator interface testing:
-- PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_GENERATED);
@@ -452,3 +453,12 @@ end +
+function HandleWoolCmd(Split, Player)
+ local Wool = cItem(E_BLOCK_WOOL, 1, E_META_WOOL_BLUE);
+ Player:GetInventory():SetSlot(5, Wool);
+ Player:GetInventory():SetSlot(6, Wool);
+ Player:GetInventory():SetSlot(7, Wool);
+ Player:GetInventory():SetSlot(8, Wool);
+ return true;
+end
\ No newline at end of file |