ProtectionAreas: missed 2 files
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1517 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
33
MCServer/Plugins/ProtectionAreas/Config.lua
Normal file
33
MCServer/Plugins/ProtectionAreas/Config.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
-- Config.lua
|
||||
|
||||
-- Implements the cConfig class that holds the general plugin configuration
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cConfig = {
|
||||
m_Wand = cItem(E_ITEM_STICK, 1, 1); -- TODO: Make this configurable by loading it from an INI file
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- Returns true if a_Item is the wand tool item
|
||||
function cConfig:IsWand(a_Item)
|
||||
return (
|
||||
(a_Item.m_ItemType == self.m_Wand.m_ItemType) and
|
||||
(a_Item.m_ItemDamage == self.m_Wand.m_ItemDamage)
|
||||
);
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- Returns the wand tool item as a cItem object
|
||||
function cConfig:GetWandItem()
|
||||
return self.m_Wand;
|
||||
end
|
||||
Reference in New Issue
Block a user