Fixed HTML loading issue.

Author: Zoey76
Source: 3479827c55
This commit is contained in:
MobiusDevelopment
2019-04-08 15:48:31 +00:00
parent e002b6d8d0
commit 117572ff57
97 changed files with 748 additions and 1722 deletions

View File

@@ -235,7 +235,7 @@ ForceInventoryUpdate = False
# True = Load html's into cache only on first time html is requested.
# False = Load all html's into cache on server startup.
# Default: True
# Default: False
LazyCache = False
# Cache all character names in to memory on server startup

View File

@@ -94,6 +94,9 @@ AcceptAlternateID = True
# Default: .
DatapackRoot = .
# Scripts root directory.
ScriptRoot = ./data/scripts
# Define how many players are allowed to play simultaneously on your server.
# Default: 2000
MaximumOnlineUsers = 2000

View File

@@ -221,7 +221,7 @@ public final class AdminPForge implements IAdminCommandHandler
private void showValuesPage(PlayerInstance activeChar, String[] opCodes, String format)
{
String sendBypass = null;
String valuesHtml = HtmCache.getInstance().getHtmForce(activeChar, "data/html/admin/pforge/values.htm");
String valuesHtml = HtmCache.getInstance().getHtm(activeChar, "data/html/admin/pforge/values.htm");
if (opCodes.length == 3)
{
valuesHtml = valuesHtml.replace("%opformat%", "chd");