MCCodes 2.0: A Beginner's Manual

MCCodes 2.0 Home Screen

Introduction

New to MCCodes? Or simply wanting reference on a simple task? That's what this beginner's manual is for. This manual contains general information to help you run your game.

If you haven't yet got a copy of it, head over to the MCCodes 2.0 page on Github and download it ready to continue on.

Contents

1. Installation

1.1 Basic Installation

So you have downloaded MCCodes 2.0, and are ready to set up. First, check these things:

Got all the above? Good.

Upload all the files and directories in the upload folder of the MCC2 .zip archive to your webserver.

Normally, you will be uploading to either the public_html folder, or the root level folder.

A good way to check this is to upload one file then try to access it through your domain and see if it works.

If it doesn't, you've got the path wrong.

Once done, run install.php.

First, your server diagnostics will be checked.

If one of these tests fails, you will need to correct it before moving on.

MCCodes 2.0 Installation Screen - Step 1: Diagnostics

Next, you need to fill in your database info, and a few basic settings.

Make sure the PayPal email you specify is the main email of the PayPal account, and that the account is at least Premier.

Otherwise, the basic settings are up to you.

MCCodes 2.0 Installation Screen - Step 2: Configuration

After you submit this form, the installer should hopefully run, and insert all the tables and entries into SQL you need.

If not, go back and check your config.

MCCodes 2.0 Installation Screen - Step 3: Installation

Now the basic installation is complete, and you're ready to move on to setting up the Cron Jobs.

1.2 Cronjobs

The Cronjobs are the thing most people are confused on, or they simply do not work for them.

However, if you follow the below instructions correctly, your crons should work fine, unless your server is configured differently to a normal cPanel server.

If you are not using cPanel, you will need Shell access to your server (through SSH or SFTP).

If you are using cPanel, follow these instructions:

If you do not have cPanel but do have Shell access, follow these instructions:

1.3 PayPal Configuration.

MCC2 uses several PayPal devices to ensure that donations are credited securely and accurately. However, some of these devices must be enabled in your PayPal account before MCC2 can use them. If these steps are not followed, your donation system will not work properly. Follow these steps to get it up and working:

NB: Will Potion crediting will still not work until you carry out the instructions in 2.1.

2. Basic Usage & Tips

2.1 Setting up Will Potions

So you've installed MCC2, and are ready to use it.

Log in to your account (you specified the details during installation) and take a look around.

MCCodes 2.0 Login Screen

On the left side should be a menu, containing the major functions of MCC2.

First off, you will want to set up your Will Potion crediting.

Click the Staff Panel link to be taken to the MCC2 Staff Panel.

First, you need an item type to put the Will Potion item into. Scroll down and click > Add Item Type.

Put in a name (suggestions: Special, Donation Item), then click the Add Item Type button to add the type.

Now, scroll down to > Create New Item and click it.

MCCodes 2.0 Staff Panel - Add Item Screen

The Item Name can be anything you like, although it is advisable to make it something will-related, such as Will Potion or Will Bottle.

Again, you can choose the Description.

The Item Type you made before should be automatically selected, since it should be the only item type so far.

Make the item unbuyable, unless you want to sell it in shops.

If you do wish to sell it in shops, you will want to set a buy and sell price, otherwise just get these to 0.

Now for the effect.

Turn Effect 1 On with the appropriate radio button.

For the Stat, choose Will.

Direction should be left on Increase.

For Amount, put in 100, and for the drop-down box next to the amount, open it and choose Percent.

Summary: This item will increase Will by 100%, as you specified.

You're done configuring the Will Potion item - scroll down and click "Add Item To Game" to add it.

Now to link it to your Will Potion payment system.

Click Basic Settings on the left-hand menu.

MCCodes 2.0 Staff Panel - Basic Settings Screen

Now go down to the Will Potion Item setting.

If your Will Potion is not already selected for some reason, select it in the drop-down box.

Now press Update Settings to save your Will Potion item as the item to credit when someone buys a Will Potion pack.

Congratulations, your first item is complete.

2.2 Tips for running a game


Portions of this page are © 2024 Dave Macaulay & MCCodes, licensed under MIT.

View MIT License (full text)
MIT License

Copyright (c) 2024 Dave Macaulay & MCCodes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

First published October 7, 2025

Tags: Open Source , PBBG