NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

[TUTORIAL NamelessMC v2]: Domain instead of IP (show and copy)
Started by LandinoPlayz

LandinoPlayz

LandinoPlayz

Member
Joined
17 Dec 2018
Last Seen
14 Mar 2020
Topics
3
Posts
7

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

  1. First you WILL need to type in the IP of the server and the port (in Integration > Minecarft > Minecraft Server > My Server)
  2. Now find the FTP info from your website hosting service
  3. Download free FTP software - I reccoment THIS one
  4. Now Install It
  5. Input your FTP information you found on your hosts site
  6. Log in
  7. Go to htdocs > modules > Core
  8. Open the module.php file
  9. Go to the line 576
  10. Make sure that the line is the first $smarty->assign line after this line of code:  if(!is_null($default) && isset($default->ip)){
  11. Replace the line with: 
  12. $smarty->assign('CONNECT_WITH', str_replace('{x}', '' . Output::getClean($default->ip = 'YOUR DOMAIN' . ($default->port = '')) . '', $language->get('general', 'connect_with_ip_x')));
  13. Make sure that the above code is in one line
  14. Save the file, Refresh the page and BOOM, Its working... Probably!

So That is it, Hope you find this useful!

-Landi

LandinoPlayz · over 5 years ago · Last edited: over 5 years ago
DieselJS

DieselJS

Member
Joined
04 Jul 2019
Last Seen
24 Mar 2023
Topics
1
Posts
5

Did this and the `:` went, but when I clicked on it to copy it doesn't copy.

DieselJS · over 4 years ago