summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/main.lua
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-08 23:41:17 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-08 23:41:17 +0200
commit917259f2e7ec1dbe3598f3f613bd00be5a691a71 (patch)
tree42f4f6780b60f14e3f6a21abce496ce6659762d0 /MCServer/Plugins/Core/main.lua
parentStringToItem() sets item's count to 1 after a successful parse (diff)
downloadcuberite-917259f2e7ec1dbe3598f3f613bd00be5a691a71.tar
cuberite-917259f2e7ec1dbe3598f3f613bd00be5a691a71.tar.gz
cuberite-917259f2e7ec1dbe3598f3f613bd00be5a691a71.tar.bz2
cuberite-917259f2e7ec1dbe3598f3f613bd00be5a691a71.tar.lz
cuberite-917259f2e7ec1dbe3598f3f613bd00be5a691a71.tar.xz
cuberite-917259f2e7ec1dbe3598f3f613bd00be5a691a71.tar.zst
cuberite-917259f2e7ec1dbe3598f3f613bd00be5a691a71.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Core/main.lua28
1 files changed, 0 insertions, 28 deletions
diff --git a/MCServer/Plugins/Core/main.lua b/MCServer/Plugins/Core/main.lua
index b6599bce7..79c9d6eee 100644
--- a/MCServer/Plugins/Core/main.lua
+++ b/MCServer/Plugins/Core/main.lua
@@ -7,7 +7,6 @@ SHOW_PLUGIN_NAMES = true -- If true, plugin name will be shown before commands
PLUGIN = {} -- Reference to own plugin object
BannedPlayersIni = {}
WhiteListIni = {}
-ItemsTable = {}
function Initialize( Plugin )
PLUGIN = Plugin
@@ -72,33 +71,6 @@ function Initialize( Plugin )
if ( IniFile:ReadFile() == true ) then
SHOW_PLUGIN_NAMES = IniFile:GetValueB("HelpPlugin", "ShowPluginNames", true )
end
-
- local itemsINI = cIniFile("items.ini")
- if ( itemsINI:ReadFile() == true ) then
- local KeyID = itemsINI:FindKey('Items')
-
- LOGINFO("Core: loaded " .. itemsINI:GetNumValues( KeyID ) .. " item names.")
-
- for i = 0, itemsINI:GetNumValues('Items') do
- local ItemName = itemsINI:GetValueName( KeyID, i )
- local ItemSyntax = itemsINI:GetValue(KeyID, i, "0")
-
- local ItemData = StringSplit(ItemSyntax, ":") -- [1] = ID, [2] = perhaps meta/dmg
- if( #ItemData > 0 ) then
- local ItemID = tonumber( ItemData[1] )
- if( ItemID > 0 ) then
- local ItemMeta = 0
- if( #ItemData > 1 ) then
- ItemMeta = tonumber( ItemData[2] )
- end
- ItemsTable[ ItemName ] = cItem( ItemID, 1, ItemMeta )
- --LOGINFO("Got item: " .. ItemName .. "-> " .. ItemsTable[ ItemName ].m_ItemID ..":" .. ItemsTable[ ItemName ].m_ItemHealth )
- end
- end
- end
-
- HAVE_ITEM_NAMES = true
- end
-- Load whitelist, and add default values and stuff
WhiteListIni = cIniFile( Plugin:GetLocalDirectory() .. "/whitelist.ini" )