Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
Change loaded script message to log message
Browse files Browse the repository at this point in the history
  • Loading branch information
vexyl committed Sep 9, 2018
1 parent c475c40 commit ca32465
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/essentials/cuboid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ EssentialsPlugin.Cuboid_DoCuboid = function(client)

local btype = blocks["1"].type

-- Set block type to air if player is used /z air
-- Set block type to air if player used /z air
if (EssentialsPlugin.Cuboid_destroy[client.name] == 1) then
btype = 0
end
Expand Down
3 changes: 2 additions & 1 deletion src/LuaPlugins/LuaPlugin.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// https://eliasdaler.wordpress.com/2014/07/18/using-lua-with-cpp-luabridge/

#include "LuaPlugin.hpp"
#include "../Utils/Logger.hpp"

#include <iostream>

Expand Down Expand Up @@ -32,7 +33,7 @@ void LuaPlugin::LoadScript(lua_State* L, const std::string& filename)
throw std::runtime_error("Couldn't find Plugin table for plugin " + m_name + " (" + filename + ")");
}

std::cout << "Loaded script " << filename << std::endl;
LOG(LogLevel::kDebug, "Loaded script %s", filename.c_str());
} else {
throw std::runtime_error("Failed to load script " + filename + ": " + lua_tostring(L, -1));
}
Expand Down

0 comments on commit ca32465

Please sign in to comment.