summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/web_serversettings.lua
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-08-02 08:48:47 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-08-02 08:48:47 +0200
commit207a45217115e19d25df5dbadb3ac38b7f6dadf1 (patch)
tree293b9fa520e5b55c176fa5d398b585d9762b5c8d /MCServer/Plugins/Core/web_serversettings.lua
parentImplemented OnPlayerRightClickingEntity() hook (diff)
downloadcuberite-207a45217115e19d25df5dbadb3ac38b7f6dadf1.tar
cuberite-207a45217115e19d25df5dbadb3ac38b7f6dadf1.tar.gz
cuberite-207a45217115e19d25df5dbadb3ac38b7f6dadf1.tar.bz2
cuberite-207a45217115e19d25df5dbadb3ac38b7f6dadf1.tar.lz
cuberite-207a45217115e19d25df5dbadb3ac38b7f6dadf1.tar.xz
cuberite-207a45217115e19d25df5dbadb3ac38b7f6dadf1.tar.zst
cuberite-207a45217115e19d25df5dbadb3ac38b7f6dadf1.zip
Diffstat (limited to 'MCServer/Plugins/Core/web_serversettings.lua')
-rw-r--r--MCServer/Plugins/Core/web_serversettings.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/MCServer/Plugins/Core/web_serversettings.lua b/MCServer/Plugins/Core/web_serversettings.lua
index 75f9b46c2..a53756b21 100644
--- a/MCServer/Plugins/Core/web_serversettings.lua
+++ b/MCServer/Plugins/Core/web_serversettings.lua
@@ -43,8 +43,8 @@ local function ShowGeneralSettings( Request )
SettingsIni:SetValue("Server", "MaxPlayers", Request.PostParams["Server_MaxPlayers"], false )
end
if( tonumber( Request.PostParams["Server_Port"] ) ~= nil ) then
- if( tonumber( Request.PostParams["Server_Port"] ) > 0 ) then
- SettingsIni:SetValue("Server", "Port", Request.PostParams["Server_Port"], false )
+ if( tonumber( Request.PostParams["Server_Port"] ) > 0 ) then
+ SettingsIni:SetValue("Server", "Port", Request.PostParams["Server_Port"], false )
end
end
if( tonumber( Request.PostParams["Server_PortsIPv6"] ) ~= nil ) then
@@ -363,7 +363,7 @@ function ShowWorldSettings( Request )
WorldIni:DeleteValue( "SpawnPosition", "Z" )
WorldIni:SetValue( "SpawnPosition", "Z", Request.PostParams["World_SpawnZ"] )
end
- if( tonumber( Request.PostParams["LimitWorldWidth"] ) ~= nil ) then
+ if( tonumber( Request.PostParams["LimitWorldWidth"] ) ~= nil ) then
WorldIni:DeleteValue( "WorldLimit", "LimitRadius" )
WorldIni:SetValue( "WorldLimit", "LimitRadius", Request.PostParams["LimitWorldWidth"] )
end
@@ -669,8 +669,8 @@ function ShowWorldSettings( Request )
<td><input type="text" name="World_SpawnZ" value="]] .. WorldIni:GetValue("SpawnPosition", "Z") .. [["></td></tr>
</table>
<br />
- <table>
- <th colspan="2">LimitWorld</th>
+ <table>
+ <th colspan="2">LimitWorld</th>
<tr><td>Max chunks from spawn (0 to disable):</td>
<td><input type="text" name="LimitWorldWidth" value="]] .. WorldIni:GetValue("WorldLimit", "LimitRadius") .. [["></td></tr>
</table><br />