/morecommands

Server-side mod for Forge servers

Primary LanguageJava


MoreCommands logo

More Commands

Server-side mod which adds a bunch of useful commands for players and administrators.

Table of contents

What is MoreCommands?

MoreCommands is a mod which add a bunch of useful commands for players and administrators. It is inspired from the old Essentials plugin created by essentialsteam (sources availables here). This is a server-side mod, which means you only need to add this mod in your server mods folder. Something cool about this is Vanilla clients are able to connect to a Forge Minecraft server using MoreCommands. It simply adds several commands for your Minecraft server. Bold commands are for OPs only.

  • /sethome
  • /home
  • /spawn
  • /tpa
  • /tpahere
  • /back
  • /warp
  • /warps
  • /setspawn
  • /setwarp
  • /vanish
  • /invsee

Getting started

  1. Stop your Minecraft server.
  2. Add morecommands-X.X.jar in the ./mods/ directory of your server.
# This command downloads the latest version of morecommands
# Execute it in the mods/ folder
curl -s https://api.github.com/repos/chocorean/morecommands/releases/latest \
  | grep "browser_download_url.*jar" \
  | cut -d : -f 2,3 \
  | tr -d \" \
  | wget -qi -
  1. Run once your server in order to generate the configuration file.
  2. Edit the ./config/morecommands.cfg file depending on your needs (see file and database strategies).
  3. Restart the server.

Strategies

File strategy

Edit the ./config/morecommands.cfg file as following:

general {
  # ...
  # S:strategy=DATABASE
  S:strategy=FILE
}

When using this strategy, a morecommands.csv file will be created in the ./data/ folder. Each row is composed of 4 types of data:

  • The type of data (currently HOME or WARP)
  • The username of the player
  • The data relative to the HOME or WARP

Database strategy

Edit the ./config/morecommands.cfg file:

general {
  # ...
  # S:strategy=FILE
  S:strategy=DATABASE
}

Don't forget to fill in this file all the information related to your database (under the database {...} key).

The last step is to initialize the database morecommands with tables home and warp:

/* Create the database */
CREATE OR REPLACE DATABASE morecommands;

/* Create the table containing the warps data */
CREATE TABLE IF NOT EXISTS minecraft.warps (
  id int(11) NOT NULL AUTO_INCREMENT,
  warpname varchar(255) NOT NULL,
  x int(11) NOT NULL,
  y int(11) NOT NULL,
  z int(11) NOT NULL,
  dimension int(11) NOT NULL,
  yaw float(11) NOT NULL,
  pitch float(11) NOT NULL,
  PRIMARY KEY (name)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/* Create the table containing the homes data */
CREATE TABLE IF NOT EXISTS minecraft.homes (
  id int(11) NOT NULL AUTO_INCREMENT,
  username varchar(255) NOT NULL,
  x int(11) NOT NULL,
  y int(11) NOT NULL,
  z int(11) NOT NULL,
  yaw float(11) NOT NULL,
  pitch float(11) NOT NULL,
  PRIMARY KEY (name)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/* Remember table names can be changed in the config */

Issues

Right here.

Website

Further informations and downloads links are available on the Curse project page.

Contact

Mail

Contributors