Mineplex/.FILES USED TO GET TO WHERE WE ARE PRESENTLY/CSGI Mineplex Testing Servers/MineplexNodeJS-master - Copy
Daniel Waggner cdc35b3b7b Roll Back
Rolled the repository back to a working version that I had lying around. Things seem to be running smoothly.
2023-05-20 16:10:56 -07:00
..
functions CSGI Testing Servers 2023-05-17 17:18:24 -07:00
routes CSGI Testing Servers 2023-05-17 17:18:24 -07:00
.env CSGI Testing Servers 2023-05-17 17:18:24 -07:00
.gitignore CSGI Testing Servers 2023-05-17 17:18:24 -07:00
app.js CSGI Testing Servers 2023-05-17 17:18:24 -07:00
chatfilter.json CSGI Testing Servers 2023-05-17 17:18:24 -07:00
config.json Roll Back 2023-05-20 16:10:56 -07:00
Database.js CSGI Testing Servers 2023-05-17 17:18:24 -07:00
install.bat CSGI Testing Servers 2023-05-17 17:18:24 -07:00
LICENSE.MD CSGI Testing Servers 2023-05-17 17:18:24 -07:00
package-lock.json CSGI Testing Servers 2023-05-17 17:18:24 -07:00
package.json CSGI Testing Servers 2023-05-17 17:18:24 -07:00
README.MD CSGI Testing Servers 2023-05-17 17:18:24 -07:00
start.bat CSGI Testing Servers 2023-05-17 17:18:24 -07:00

Mineplex Node.js

Replacement for the unfinished php files. (this is still unfinished but at least there isn't errors)

Security notice

This api is highly vulnerable to sql injection.

Archive notice

I am unable to work on this project anymore since I don't have the time. If you wish to continue development you can do so with forks.
Also, this code is very messy and uses a framework that isn't the fastest. If you want to rewrite it, use something like fastify. Please, never use this as a model for making an api.

Depends

Things this doesn't handle

  • Custom class builds
  • Dominate (skills, items, classes)
  • Pets
  • If you want to count things for the 2014 source code, fishing and minekarts

Running

  • Edit the config.yml to match your database settings (Note: don't include your db's port on the host)
  • Make sure your database is running
  • Open up cmd prompt/terminal in the folder of the clone of this project
  • Run npm install
  • After that is done installing the libraries run npm run production or node app.js
  • Change your webServer value in all config.yml files to be http://127.0.0.1:8080/ or http://localhost:8080/ Add the "/" at the end or you will get an error!
  • You're all set!

Chat filter

  • Change chat_filter in config.json to be true
  • Add the words you want to be filtered in chatfilter.json
  • Go into mineplex.core.chat.Chat and replace line 58(_filterUrl) to be http://127.0.0.1:8080/content/item/moderate
  • Change line 448 to be HttpURLConnection connection = null;
  • Change line 457 to be connection = (HttpURLConnection) obj.openConnection();

Structure

/

Main files such as the license and the actual [app][app.js] file.

/routes

The routers of all web requests Each file is a path (ex/ PlayerAccount.js refers to the /PlayerAccount/ path)

/functions

The functions that are called in the routers. These are basically a bunch of functions w/ callbacks to make the code more readable & to allow expanding if anyone wants to make something like a front end for this.

Authors

  • randomdevlol - Main Contributor & Project Manager

Contributing

Make a fork of this repository and contribe through there

License

This project is licensed under the MIT License - see the LICENSE.md file for details