Skip to content

mandar-ghade/DarplexMonitor

Repository files navigation

Darplex Monitor

GitHub Stars GitHub Issues Current Version Live Demo Gitter

Join our discord server by pressing this image:

This is a node.js chat application powered by sequelize and Fastify that provides the main functions you'd expect from a Mineplex-based webserver, such as chatfilter, booster handling, pets and logins.

Features

  • PlayerAccount Routes
  • Dominate Route
  • Chat Filter Route
  • Booster Route
  • Pet route.

Setup

Install node.js.

Clone this repository to your desktop using git clone https://github.com/mandar-ghade/DarplexMonitor.git. Next, change directory to DarplexMonitor using cd DarplexMonitor, then use npm install to install all the dependencies.

You might want to look into config/dbConfig.js to make change the port under the variable WEBSERVER_PORT (default is 1000), as well as changing the credentials to your SQL database.

Additionally, you can change the dialect to your preferred SQL in the dialect.

Change the web-server url in your config.yml and api-config.dat files, or internally if necessary.


Usage

After you clone this repo to your desktop, do cd DarplexMonitor and run npm install to install its dependencies.

Once the dependencies are installed, START UP YOUR MYSQL SERVER, then you can run node server.js to start the webserver. You will then be able to access it at http://127.0.0.1:(YOUR PORT HERE)/...

Boosters, Pets, AccountPunishments, ShadowMutes, CustomBuilds, and CustomBuildSlots tables get setup automatically. Whenever issues persist with any of these modules, feel free to delete them in your database as they will be autogenerated once you restart your webserver.

If you experience issues with Punishments, delete your existing table in MySQL and restart the program. The program automatically regenerates this table with foreign keys pre-setup.

Webserver routes:

WEBSERVER_PORT stands for whatever port you configured the webserver to in config/dbConfig.js

  • PlayerAccount Route:
    • Registers at http://127.0.0.1:WEBSERVER_PORT/PlayerAccount/...
    • PurchaseKnownSalesPackage excluded (EnjinTranslator feature).
    • CustomBuilds may be buggy at points (open an issue if errors persist).

  • Dominate Route:
    • Dominate solely registers GetSkills.
    • Registers at http://127.0.0.1:WEBSERVER_PORT/Dominate/GetSkills

  • Booster Route:
    • Registers at http://127.0.0.1:WEBSERVER_PORT/booster/...

  • Pet Route:
    • Registers at http://127.0.0.1:WEBSERVER_PORT/Pets/...

  • Antispam:
    • Registers at http://127.0.0.1:WEBSERVER_PORT/chat/PLUGIN_NAME

  • ChatFilter:
    • Only works when configured in source code.
    • Customizable (you can add filtered words to config/filteredWords.json)
    • To setup in source code:
      • In _plex.Core, locate src/_plex/core/chat/Chat.java.
      • Replace cleanspeak URL with http://127.0.0.1:WEBSERVER_PORT/content/item/moderate
      • Since it is an HTTP connection, replace the existing HTTPs import (from javax.net.ssl.HttpsURLConnection) to sun.net.www.protocol.http.HttpURLConnection instead.
      • Then replace every reference to HttpsURLConnection with HttpURLConnection, and comment out lines 501-507:
        • HttpURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
          HostnameVerifier allHostsValid = (hostname, session) -> true;
          // Install the all-trusting host verifier HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);"

TODO

  • Logging support.
  • Multi-part YouTube series for Plex setup from scratch (unlikely).
  • Upload MySQL database file for portable installation. ✅
  • Upload Redis scripts for easy ServerMonitor and ServerGroup installation.
  • Upload ServerMonitor scripts for Windows.

Support

  • Contact us on discord by first pressing the Darplex image at the top of the README.md file, then messaging me through the server.

License

You can check out the full license here

This project is licensed under the terms of the MIT license.

About

Webserver monitor used on Darplex Networks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages