local KitPlugin = {} KitPlugin.__index = KitPlugin function KitPlugin:new() local t = {} setmetatable(t, KitPlugin) local w = Lua__cPlugin:new() tolua.setpeer(w, t) w:tolua__set_instance(w) return w end function KitPlugin:Initialize() self:SetName( "Kit" ) self:SetVersion( 1 ) self:AddCommand("/kit", " - NEW PLAYERS ONLY! Essential starting items.", "lua.kit") self:BindCommand( "/kit", KitCommand) return true -- Make sure you return true, otherwise the plugin is not added end function KitCommand(Split, Player) local Server = cRoot:Get():GetServer() if( not Player:HasPermission( "lua.kit" ) ) then return false end Player:GetInventory():AddItem( cItem( 276, 1 ) ) Player:GetInventory():AddItem( cItem( 277, 1 ) ) Player:GetInventory():AddItem( cItem( 278, 1 ) ) Player:GetInventory():AddItem( cItem( 279, 1 ) ) Player:GetInventory():AddItem( cItem( 345, 1 ) ) Player:GetInventory():AddItem( cItem( 322, 5 ) ) Server:SendMessage("Building Materials Aquired!", Player ) end Plugin = KitPlugin:new() cRoot:Get():GetPluginManager():AddPlugin( Plugin )