Skip to content

Web client for the premium Minecraft Spigot resource "MarketPlace"

Notifications You must be signed in to change notification settings

rodel77/MarketPlace-Web

Repository files navigation

MarketPlace Web

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

Requirements:

  • 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)

How to install & update with git:

  • 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 called config.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
  • 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 containing index.php), if you didn't change anything more than your config file it should work smooth as butter

How to install (normal way):

  • 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 called config.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
  • 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!

How to setup in-server

  • Enable the configuration option webmarket.enabled
  • Restart the server, this will create the tables

How to use it

  • 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 the My Listings menu

Localization:

To change the language of "X minutes/hours etc...ago":

Change general language

Currently the only way to change the language of the page is editing the index.php file (wich) is not recommended