Giter VIP home page Giter VIP logo

Comments (17)

dimon0230ru avatar dimon0230ru commented on August 24, 2024

For example in this table
image

from webstats.

Dantevg avatar Dantevg commented on August 24, 2024

Hi, since the database column containing the UUIDs is named uuid, you'll need to do - [uuid, uuid]. The second element in the list (column in the example) is the name of the database column to use. Does that help you?

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

no
image

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

Should it create a player column in this table and write a nickname there?

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

[10:09:10] [Server thread/INFO]: [WebStats] Enabling WebStats v1.5.0
[10:09:10] [Server thread/INFO]: [WebStats] Enabled scoreboard source
[10:09:10] [Server thread/INFO]: [WebStats] Connected to database 21_site
[10:09:10] [Server thread/INFO]: [WebStats] Enabled database source
[10:09:10] [Server thread/INFO]: [WebStats] Web stats server started on port 3306

from webstats.

Dantevg avatar Dantevg commented on August 24, 2024

It does not write to the database, the conversion from uuid to player name happens "on the fly", when someone accesses the webpage.

The console output looks alright. It really should work when you look at the webpage. Does it give any warnings in the console when you load the webpage? (when you haven't set that up yet you can instead use IP:PORT/stats.json)

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

This was my last hope for the plugin I needed to add a player name column with uuid.

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

The fact is that I'm not very interested in the web, I really liked that placeholders could be transferred to the database

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

And also because I have a website that needs a nickname to connect the economy plugin

from webstats.

Dantevg avatar Dantevg commented on August 24, 2024

Ah that was your intention. The goal of WebStats is purely to read data from sources on the Minecraft server and "write" that data to the web, not between sources on the Minecraft server. What you want is not something WebStats can do, and not something I have planned for it.

If you really can not find anything that does what you want, I may be able to write a small custom plugin for you. If you would like me to, please concretely specify what exactly you want and I'll see what I can do for you ๐Ÿ˜Š

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

It will be wonderful. Almost all normal economy plugins are made for uuid, but my site only accepts a nickname to synchronize currency between servers and site

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

I thought different methods, I thought that it is possible to somehow embed a placeholder there, for example% player_name%, but this does not completely fix the problem :(. But the idea of โ€‹โ€‹converting offlineuuid to nickname from the uuid column to username seems to be much better

from webstats.

Dantevg avatar Dantevg commented on August 24, 2024

Ok, some questions:

  • to clarify, your server is in offline mode?
  • with nickname, do you mean ingame name or really the nickname? (might be an EssentialsX thing? Often indicated with ~)
  • so you essentially need a database table with UUID/nickname combinations so your website can look up the nickname for a given uuid?

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

yes, the server is offline. I have CMI instead of EssentialX. Like this% player_name%, game nickname. The site can only connect to a table with columns nickname and balance, the name of the columns can be changed. And the economy plugin to uuid and balance (pocket - column). It is necessary that in one table there should be uuid and username and pocket (balance).
Economy plugin called MZP-Economy and MZP-Core API

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

the nickname is the same in the game and on the site. You can also register on the site and go to the server or register on the server and go to the site. Shared account

from webstats.

dimon0230ru avatar dimon0230ru commented on August 24, 2024

I think I found another way to fix it, I'll have to change the code

from webstats.

Dantevg avatar Dantevg commented on August 24, 2024

Okay, I'll close this issue then. If you can't make it work, feel free to comment here again!

from webstats.

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.