Code Monkey home page Code Monkey logo

Comments (6)

pdinklag avatar pdinklag commented on August 17, 2024

but then that shows the BadWolfMC: An Adult Minecraft Server as the overall page name in the tab.

That's because the server name is inserted into the <title> tag of the webserver. If anything, this would be a browser issue, because I do not believe the client script should be responsible for parsing the actual content out of that string.

In any event, the server name is not meant to contain HTML.

My actual MOTD uses MiniMessage gradients (https://gyazo.com/8200c356b9d6157128a62ff866454cea), which as mentioned did show correctly in the previous version of MinecraftStats.

Would you give me the MOTD from your server.properties so I can properly test this?

from minecraftstats.

mercurialmusic avatar mercurialmusic commented on August 17, 2024

I confused myself before, I'm on a Bungee/Waterfall setup and my Bungee MOTD is in MiniMessage using a plugin that gives the pretty MOTD.

My MOTD in server.properties for all of the Paper servers was motd=§9Create yourself @ §awww.badwolfmc.com§3\! I enter this as \u00A79Create yourself @ \u00A7awww.badwolfmc.com\u00A73! and it automatically converts it on server restart to the section symbol. This is what is giving the bugged image I linked first.

I also wondered if, since I'm using multiple Paper servers as data source, if something is happening trying to combine the MOTDs or something? They are otherwise all the same on all the servers.

from minecraftstats.

pdinklag avatar pdinklag commented on August 17, 2024

I also wondered if, since I'm using multiple Paper servers as data source, if something is happening trying to combine the MOTDs or something? They are otherwise all the same on all the servers.

No, MinecraftStats gets the first MOTD that it finds, so if you use BungeeCord and have multiple sources configured, the first source that has a server.properties with a MOTD set will determine the MOTD displayed in the web frontend.

My MOTD in server.properties for all of the Paper servers was motd=§9Create yourself @ §awww.badwolfmc.com§3\! I enter this as \u00A79Create yourself @ \u00A7awww.badwolfmc.com\u00A73! and it automatically converts it on server restart to the section symbol. This is what is giving the bugged image I linked first.

When I use motd=§9Create yourself @ §awww.badwolfmc.com§3\!, it turns into motd=\u00C2\u00A79Create yourself @ \u00C2\u00A7awww.badwolfmc.com\u00C2\u00A73\! once I start the server (Spigot). The \u00C2 is the encoding for the character  that we see in your first image. I don't know why Spigot / Paper (maybe even vanilla) do this, but this seems like a bug in the server to me, nothing I would be fixing in MinecraftStats.

If I use motd=\u00A79Create yourself @ \u00A7awww.badwolfmc.com\u00A73!, everything works fine for me in version 3.2.0, which fixes any trouble caused by the "section symbol" (§).
Clipboard01

from minecraftstats.

Doc94 avatar Doc94 commented on August 17, 2024

Hi i have a motd like \u00a76=== Conterstine Subs [PBE-DEV] ===\u00a7r\n\u00a79Furro Power\u00a7r - \u00a7aMantenido por @MrDoc94 but when reload the paper server (1.21.1) turns into §6\=\=\= Conterstine Subs [PBE-DEV] \=\=\=§r\n§9Furro Power§r - §aMantenido por @MrDoc94 and fail to load

from minecraftstats.

pdinklag avatar pdinklag commented on August 17, 2024

This may be fixed by 3.3.0.

from minecraftstats.

Doc94 avatar Doc94 commented on August 17, 2024

Testes in latest version and still has the error.
The site show this in console.
image
and the issue is the motd format.
image

from minecraftstats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.