summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/ProtectionAreas/Config.lua
blob: c9b131f5cecd67416847c3c33e3686ae766baf2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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