summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-07-28 15:05:21 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-07-28 15:05:21 +0200
commit73f454ef37c0cf7300feecf7bb5dc6ab5eb39792 (patch)
treeb9809e623ef7b9f6be68e5e9e1b7febc3a04e11c
parentMerge pull request #11 from tigerw/master (diff)
downloadcuberite-73f454ef37c0cf7300feecf7bb5dc6ab5eb39792.tar
cuberite-73f454ef37c0cf7300feecf7bb5dc6ab5eb39792.tar.gz
cuberite-73f454ef37c0cf7300feecf7bb5dc6ab5eb39792.tar.bz2
cuberite-73f454ef37c0cf7300feecf7bb5dc6ab5eb39792.tar.lz
cuberite-73f454ef37c0cf7300feecf7bb5dc6ab5eb39792.tar.xz
cuberite-73f454ef37c0cf7300feecf7bb5dc6ab5eb39792.tar.zst
cuberite-73f454ef37c0cf7300feecf7bb5dc6ab5eb39792.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Core/main.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/MCServer/Plugins/Core/main.lua b/MCServer/Plugins/Core/main.lua
index e6e9b9e48..82b746d7b 100644
--- a/MCServer/Plugins/Core/main.lua
+++ b/MCServer/Plugins/Core/main.lua
@@ -68,7 +68,7 @@ function Initialize(Plugin)
IniFile = cIniFile("settings.ini")
if ( IniFile:ReadFile() == true ) then
HardCore = IniFile:GetValueSet("GameMode", "Hardcore", "false")
- LimitWorld = IniFile:GetValueSetB("Worlds", "LimitWorld", true)
+ LimitWorld = IniFile:GetValueSetB("Worlds", "LimitWorld", false)
LimitWorldWidth = IniFile:GetValueSetI("Worlds", "LimitWorldWidth", 10)
SPAWNPROTECT = IniFile:GetValueSetB("SpawnProtect", "Enable", true)
PROTECTRADIUS = IniFile:GetValueSetI("SpawnProtect", "ProtectRadius", 20)
@@ -76,7 +76,7 @@ function Initialize(Plugin)
IniFile:WriteFile()
end
- if LimitWorldWidth ~= nil then
+ if LimitWorld == true then
cRoot:Get():ForEachWorld(
function( World )
LimitWorldsCuboid[World:GetName()] = cCuboid()
@@ -139,8 +139,6 @@ end
--BEGIN SPAWNPROTECT LOGFILE CODE (COURTSEY OF BEARBIN)
function WriteLog(breakPlace, X, Y, Z, player, id, meta)
- PLUGIN = Plugin
-
local logText = {}
table.insert(logText, player)
@@ -179,6 +177,6 @@ function WarnPlayer(Player)
end
function OnDisable()
- LOG( "Disabled " .. Plugin:GetName() .. " v." .. Plugin:GetVersion() )
+ LOG( "Disabled Core!")
end
--END AWESOMENESS :'(