> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How To Add Custom Commands To Minecraft Server


Creating custom commands for your Minecraft server opens up a world of possibilities—automated events, special perks for players, or just fun, unique interactions. You’ll setup actions, define each arg and string, set a default value, and trigger a response or message in chat. It’s a great way to personalize gameplay and enhance your server’s uniqueness. You’ll define arguments, set a default value, and trigger a response or message in chat.

This guide will show you how to add custom commands to Minecraft server and have your own commands with the required role you desire.

Don't already host with us? 10,000+ server owners trust Sparked Host for lag-free Minecraft worlds. [Claim your server savings](https://sparkedhost.com/minecraft-server-hosting?utm_source=referral&utm_medium=knowledge_base&utm_campaign=kb_redirect&utm_content=intro) to get higher performance at less $ per month.

## Why Should I Add Custom Commands To My Minecraft Server?

Adding custom commands to your Minecraft server gives you more control over gameplay and makes it easier to manage players. Whether you want to create commands for moderation, automation, or fun events, it’s a great way to enhance the experience.

## Installing MyCommand Plugin

On Spigot servers, you can use a plugin called **MyCommand** to add custom commands.

To install MyCommand on your Spigot Minecraft server:

* Install the [MyCommand](https://www.spigotmc.org/resources/mycommand.22272/) plugin
    
    ![](https://images.surferseo.art/8dce98bd-7658-4036-a2d7-01f2c624dfe3.png)
* Log in to your [Apollo Panel](https://control.sparkedhost.us/)
    
* Open the "Files" tab
    
* Head over to the "plugins" folder
    
    ![](https://images.surferseo.art/de13f5b2-7096-4f1e-979a-daae1407ea00.png)
* Drag and drop or upload the installed plugin into the "plugins" folder
    
    ![](https://images.surferseo.art/8558be70-bfec-434b-8dbb-cbde2f76334e.png)
* Once uploaded, start your server, run your game, and have fun!

## Using MyCommand To Make Custom Commands

To config and make custom commands on your Minecraft server using MyCommand:

* Open your Apollo Panel
    
* Open the **Files** tab
    
* Head over to the "plugins" folder
    
    ![](https://images.surferseo.art/de13f5b2-7096-4f1e-979a-daae1407ea00.png)
* Navigate to the "MyCommand" folder
    
    ![](https://images.surferseo.art/a5e82230-1509-4616-91db-4cb460381b25.png)
* Now, access the "command" folder
    
    ![](https://images.surferseo.art/4afc671d-0c23-4f79-8bc6-32355bcf583e.png)
* Click on "New File" and type the desired custom commands inside, then name it "custom.yml"

In the "custom.yml" file, you will add any new commands desired and modify them as desired.

![](https://images.surferseo.art/e4412f13-eaf3-4001-ac46-a97d7dcc1c5e.png)

### Commands To Use

You can check out a lot of other command examples [here](https://dev.bukkit.org/projects/mycommand/pages/configuration-and-example), and for command types, click [here](https://dev.bukkit.org/projects/mycommand/pages/configuration-and-example/command-types-and-placeholders) and [here](https://dev.bukkit.org/projects/mycommand/pages/commands-permissions)

#### Setting Day Command

```
day:
  command: /day
  type: RUN_COMMAND
  runcmd:
    - /time set day
  permission-required: false
```

Once you have edited your "custom.yml" click on save, restart your server or type `/mycmd-reload all` and then type `/day` instead of `/time set day`

#### Summon TNT at your location

```
boom:
  command: /boom
  type: RUN_COMMAND
  runcmd:
    - /summon tnt ~ ~1 ~ {Fuse:40}
  permission-required: true
  permission-node: mycommand.boom
```

Once you type `/boom` TNT will boom at your location

#### Strike lightning at your location

```
lightning:
  command: /lightning
  type: RUN_COMMAND
  runcmd:
    - /summon lightning_bolt ~ ~ ~
  permission-required: true
  permission-node: mycommand.lightning
```

Once the `/lightning` command is executed, expect a lightning strike at your location

## Still have some questions about adding custom commands to your Minecraft server?

If you want answers to your questions, you can open a support ticket [here](https://billing.sparkedhost.com/submitticket.php), we'll respond as soon as possible.

By: Ali A. 