Debuggers: a simple test of armor slot setting
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1494 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
90c398a392
commit
9dab3c4e8f
@ -19,6 +19,7 @@ function Initialize(Plugin)
|
|||||||
|
|
||||||
PluginManager:BindCommand("/le", "debuggers", HandleListEntitiesCmd, " - Shows a list of 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("/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:
|
-- Enable the following line for BlockArea / Generator interface testing:
|
||||||
-- PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_GENERATED);
|
-- 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
|
Loading…
Reference in New Issue
Block a user