summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-07 18:33:15 +0200
committermadmaxoft <github@xoft.cz>2013-09-07 18:33:15 +0200
commitaf694a516d3d6d659d02672f69cd50b98f9ac08d (patch)
treed71aabf1b2175890e45a6d06cd5f57db9b34489d /MCServer
parentRenamed cWorld::DoExplosiontAt() to cWorld::DoExplosionAt() (diff)
downloadcuberite-af694a516d3d6d659d02672f69cd50b98f9ac08d.tar
cuberite-af694a516d3d6d659d02672f69cd50b98f9ac08d.tar.gz
cuberite-af694a516d3d6d659d02672f69cd50b98f9ac08d.tar.bz2
cuberite-af694a516d3d6d659d02672f69cd50b98f9ac08d.tar.lz
cuberite-af694a516d3d6d659d02672f69cd50b98f9ac08d.tar.xz
cuberite-af694a516d3d6d659d02672f69cd50b98f9ac08d.tar.zst
cuberite-af694a516d3d6d659d02672f69cd50b98f9ac08d.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua
index be16e3465..f5cd57116 100644
--- a/MCServer/Plugins/Debuggers/Debuggers.lua
+++ b/MCServer/Plugins/Debuggers/Debuggers.lua
@@ -1,6 +1,5 @@
--- Global variables
-PLUGIN = {}; -- Reference to own plugin object
+-- Global variables
g_DropSpensersToActivate = {}; -- A list of dispensers and droppers (as {World, X, Y Z} quadruplets) that are to be activated every tick
g_HungerReportTick = 10;
g_ShowFoodStats = false; -- When true, each player's food stats are sent to them every 10 ticks
@@ -11,8 +10,6 @@ g_ShowFoodStats = false; -- When true, each player's food stats are sent to the
function Initialize(Plugin)
- PLUGIN = Plugin
-
Plugin:SetName("Debuggers")
Plugin:SetVersion(1)
@@ -480,6 +477,7 @@ end
function OnWorldTick(a_World, a_Dt)
+ -- Report food stats, if switched on:
local Tick = a_World:GetWorldAge();
if (not(g_ShowFoodStats) or (math.mod(Tick, 10) ~= 0)) then
return false;