Rename server code to modpack code

This commit is contained in:
Peter 2021-07-10 11:13:27 +01:00
parent 67a2f16456
commit f735f5db40
3 changed files with 7 additions and 7 deletions

View File

@ -778,8 +778,8 @@ function checkCurrentServer(errorOverlay = true){
if(errorOverlay){
setOverlayContent(
'Current Server Restricted!',
'It seems that you no longer have the server code required to access this server! Please switch to a different server to play on.<br><br>If you feel this is an error, please contact the server administrator',
'Switch Server'
'It seems that you no longer have the Modpack code required to access this server! Please switch to a different server to play on.<br><br>If you feel this is an error, please contact the server administrator',
'Switch Modpacks'
)
setOverlayHandler(() => {
toggleServerSelection(true)

View File

@ -339,10 +339,10 @@ function bindServerCodeButtons(){
if(!ConfigManager.getServerCodes().includes(code) && code){
ConfigManager.getServerCodes().push(code)
ConfigManager.save()
loggerSettings.log('Added server code to configuration and saved it')
loggerSettings.log('Added modpack code to configuration and saved it')
prepareLauncherTab()
} else {
loggerSettings.log('Server code already exists or is empty, not adding.')
loggerSettings.log('Modpack code already exists or is empty, not adding.')
}
}
}
@ -360,7 +360,7 @@ function bindServerCodeButtons(){
prepareLauncherTab()
}
}
loggerSettings.log('Server code doesnt exist!, not removing.')
loggerSettings.log('Modpack code doesnt exist!, not removing.')
}
})
}

View File

@ -267,7 +267,7 @@
<div class="settingsFileSelDesc">All game files and local Java installations will be stored in the data directory.<br>Screenshots and world saves are stored in the instance folder for the corresponding server configuration.</div>
</div>
<div class="settingsServerCodeContainer">
<div class="settingsServerCodeTitle">Your Server Codes</div>
<div class="settingsServerCodeTitle">Your Modpack Codes</div>
<div class="settingsServerCodeContent">
<div class="settingsServerCodeActions">
<input class="settingsInputServerCodeVal" placeholder="Enter Code" type="text">
@ -277,7 +277,7 @@
<div id="settingsServerCodesListContent">
</div>
<div class="settingsServerCodesDesc">Specify server codes here to grant access to hidden servers that wouldn't be available to all users by default.</div>
<div class="settingsServerCodesDesc">Specify modpack codes here to grant access to hidden servers that wouldn't be available to all users by default.</div>
</div>
</div>
<div id="settingsTabAbout" class="settingsTab" style="display: none;">