This is a tutorial for NamelessMC v2 pr6
Hi there,
So I have recently discovered that if I type my domain as the server IP this (in Integration > Minecarft > Minecraft Server > my server) happens:
I get MYDOMAIN: to show, because of that : it registers the server as ofline coz it can't resolve the hostname. And it also copies it like that.
So I was playing around with some source code of Nameless and I figures out how to Resolve this issue
If you already have FTP software skip steps 3 and 4 | If you host your site by yourself skip steps 2, 3, 4, 5 and 6
- First you WILL need to type in the IP of the server and the port (in Integration > Minecarft > Minecraft Server > My Server)
- Now find the FTP info from your website hosting service
- Download free FTP software - I reccoment THIS one
- Now Install It
- Input your FTP information you found on your hosts site
- Log in
- Go to htdocs > modules > Core
- Open the module.php file
- Go to the line 576
- Make sure that the line is the first $smarty->assign line after this line of code: if(!is_null($default) && isset($default->ip)){
- Replace the line with:
- $smarty->assign('CONNECT_WITH', str_replace('{x}', '' . Output::getClean($default->ip = 'YOUR DOMAIN' . ($default->port = '')) . '', $language->get('general', 'connect_with_ip_x')));
- Make sure that the above code is in one line
- Save the file, Refresh the page and BOOM, Its working... Probably!
So That is it, Hope you find this useful!
-Landi