cdc35b3b7b
Rolled the repository back to a working version that I had lying around. Things seem to be running smoothly. |
||
---|---|---|
.. | ||
functions | ||
routes | ||
.env | ||
.gitignore | ||
app.js | ||
chatfilter.json | ||
config.json | ||
Database.js | ||
install.bat | ||
LICENSE.MD | ||
package-lock.json | ||
package.json | ||
README.MD | ||
start.bat |
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
- Node.js
- MySQL database
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
ornode app.js
- Change your webServer value in all config.yml files to be
http://127.0.0.1:8080/
orhttp://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 betrue
- Add the words you want to be filtered in chatfilter.json
- Go into
mineplex.core.chat.Chat
and replace line58
(_filterUrl
) to behttp://127.0.0.1:8080/content/item/moderate
- Change line
448
to beHttpURLConnection connection = null;
- Change line
457
to beconnection = (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