diff --git a/public/index.php b/public/index.php index 8f65ae6..300379e 100644 --- a/public/index.php +++ b/public/index.php @@ -65,9 +65,15 @@ $router->get('/', function($response, $request) use ($db, $remote, $loginUrl, $u $body .= ''; } - if($userInfo->success) { + if(!$userInfo->success) { + $body .= '
This website allows you to whitelist yourself on our Minecraft servers, for which you need to be logged in.
'; + $body .= 'So it doesn\'t make sense to display the details either.
'; + $body .= 'This will give you access to the server.
'; $body .= 'Down currently because I don\'t have the resources to run multiple games at once yet.
'; - //$body .= 'mc.flashii.net
';
- //$body .= ' An SRV record is used, so no port needs to be specified.
'; - $body .= 'We recommend you use MultiMC/PolyMC for easy version and mod management and Adoptium Java 17 to actually be able to launch the game. Other launchers work completely fine though.
'; + $body .= 'Name | Address | Java version | Bedrock version | Details |
---|---|---|---|---|
Vanilla Survival | mc-survival.flashii.net | 1.19.2 | N/A | Regular Minecraft Survival with some server-side extensions. |
Beta Survival | mc-beta.flashii.net | Beta 1.7.3 | N/A | Classic Minecraft Survival! |
Tekkit Classic | mc-tekkit.flashii.net | 1.2.5 | N/A | Page for this modpack on the Technic Platform |
All of Fabric 6 | mc-aof6.flashii.net | 1.19.2 | N/A | Page for this modpack on CurseForge |
Through the black magic bestowed upon us by GeyserMC it\'s possible to play on the server through any of the updated Bedrock versions of Minecraft.
'; - $body .= 'This should allow you to play on the server from a phone, a tablet or a console, provided you also have an account for the original version of the game.
'; - $body .= 'You will need to link your Minecraft and Bedrock accounts, you can do this by connecting to link.geysermc.org
in both versions of the game and following the on-screen instructions.
Unfortunately, the Bedrock versions of the game don\'t support SRV records, so you\'ll have to join with a different address:
'; - //$body .= 'mcb.flashii.net:19132
';
- $body .= ' Also down, lol!
'; - $body .= 'This will revoke your access to the server.
'; $body .= sprintf('You are currently whitelisted as %s on %s.
', $userInfo->mc_username, date('Y-m-d H:i:s T', $userInfo->mc_whitelisted)); + if(floor($userInfo->mc_whitelisted / 300) === floor(time() / 300)) { + $body .= 'The whitelists are synchronised once every 5 minutes, you\'ll be able to play soon!
'; + $body .= 'If you\'re playing a modpack, take that time to start the game up; it\'ll take a while.
'; + } $body .= 'aof.flashii.net
';
- $body .= ' An SRV record is used, so no port needs to be specified.
'; - $body .= 'There\'s a pack for MultiMC/PolyMC somewhere and you\'ll probably need Adoptium Java 17 to actually be able to launch the game. Other launchers work completely fine though, probably.
'; - $body .= 'This server doesn\'t currently use a whitelist, so you don\'t have to worry about that.
'; - $body .= 'This website allows you to whitelist yourself on our Minecraft server, for which you need to be logged in.
'; - $body .= 'So it doesn\'t make sense to display the details either.
'; + $body .= 'Through the black magic bestowed upon us by GeyserMC it\'s possible to play on the server through any of the updated Bedrock versions of Minecraft.
'; + $body .= 'This should allow you to play on the server from a phone, a tablet or a console, provided you also have an account for the original version of the game.
'; + $body .= 'You will need to link your Minecraft and Bedrock accounts, you can do this by connecting to link.geysermc.org
in both versions of the game and following the on-screen instructions.
Do note that this only works for servers where both a Java and Bedrock version number is listed!
'; $body .= '1. Observe Global Rules.
'; + $body .= '1. Observe Global Rules.
'; $body .= '2. Don\'t be an asshole.
'; $body .= '3. Don\'t flood.
'; $body .= '