This project its a web visualizer to the plugin MarketPlace that you can add in your server page!
Report issues: https://github.com/rodel77/MarketPlace-Web/issues
- MarketPlace <= 2.0 (Type set to MySQL)
- PHP <= 7.0.0
- curl (for webhooks)
- PDO extension enabled
- Git (If you wan't to use the fast install-update mode, and if you can use it on your web server)
- Clone the repo
git clone https://github.com/rodel77/MarketPlace-Web.git marketplace
- Go to the new created folder
marketplace
- Copy
default-config.php
contents to a new file calledconfig.php
- Linux:
cp default-config.php config.php
- Windows:
copy default-config.php config.php
- If you are using a shared host or don't wanna fell like a hacker... you know how to copy a file
- Linux:
- Setup your MySQL configuration in the
config.php
such as host, user, password, db and table among any other thing you want to change - Follow the
How to setup in-server
part - Enjoy!
- Now if the page tells you to update or you just want to update, use
git pull
in the root folder of the page (the one containingindex.php
), if you didn't change anything more than your config file it should work smooth as butter
- Download and copy the files into the folder you want to put the page https://github.com/rodel77/MarketPlace-Web/releases
- Copy
default-config.php
contents to a new file calledconfig.php
- Linux:
cp default-config.php config.php
- Windows:
copy default-config.php config.php
- If you are using a shared host or don't wanna fell like a hacker... you know how to copy a file
- Linux:
- Setup your MySQL configuration in the
config.php
such as host, user, password, db and table among any other thing you want to change - Follow the
How to setup in-server
part - Enjoy!
- Enable the configuration option webmarket.enabled
- Restart the server, this will create the tables
- First of all each player should create their account using
/mp setpin <pin>
- Now they can login in the webmarket using their Minecraft username and the pin they already set
- Also they should add money into the account, so use
/mp wallet deposit <amount>
and it will taken from your economy plugin and put into the player's webmarket account - Now on page refresh the balance will be updated at the top right
- They can purchase items throught the web (Note that since we can't sync all the permissions taxes will not be the same as in-game, you should set a global purchase tax percent in the tax.webPurchaseTax configuration options)
- Once a item is purchased it can be claimed at the
Deliveries
button in theMy Listings
menu
- See the name of your locale, you can go to https://cdnjs.com/libraries/moment.js/
- Set in your config file the
MOMENT_LANG
into your language (for examplees
is Spanish)
Currently the only way to change the language of the page is editing the index.php file (wich) is not recommended