Skip to content

Commands

nigel edited this page Sep 2, 2018 · 19 revisions

All commands that begin with hm_ can be run from chat by replacing the hm_ with a !.

For example, to run the command hm_info player in chat, type: !info player.

Internal halfShell Commands

These commands can only be run from the halfShell console, halfMod console, or hm_rcon.

Command Description
hs Replies to the requesting mod with version info.
hs list Replies to the requesting mod listing the currently connected mods.
hs raw <message ...> Sends a raw message to the requesting mod.
hs relay <command ...> Relay a command back to the requesting mod as the server.
hs relayall <command ...> Relay a command back to all mods as the server.
hs relayto <N> <command ...> Relay a command back to the Nth mod as the server.
hs wall <message ...> Send a message to all mods, note: can be intercepted as a trigger by the mods.

Internal halfMod Commands

Command Flag Description
hm null Various plugin handling commands. Can only be run from the halfMod console or through hm_rcon.
hm plugins list null List all loaded plugins.
hm plugins info <plugin> null Display info about a loaded plugin. plugin can be the name, path, or number (order in which it was loaded) of the plugin.
hm plugins load <plugin> null Load a plugin. plugin is the filename of the plugin without the extension starting in the ./halfMod/plugins/ directory.
hm plugins unload <plugin> null Unload a plugin. plugin can be the name, path, or number (order in which it was loaded) of the plugin.
hm plugins reload <plugin> null Reload a plugin. plugin can be the name, path, or number (order in which it was loaded) of the plugin.
hm_credits none Print credits.
hm_cvar <convar> [value] FLAG_CVAR (h) Set or view the value of a ConVar.
hm_cvarinfo [criteria] [page] FLAG_CVAR (h) Lists all registered ConVars, displays 10 per page. If criteria is provided then only ConVars whose name or description contains criteria will be displayed.
hm_exec <cfg file name> FLAG_CONFIG (f) Execute a file as the server. Each line being a separate command. halfMod commands as well as minecraft commands are allowed here.
hm_info [criteria] [page] FLAG_ADMIN (a) Lists all commands registered from loaded plugins, displays 10 per page. If criteria is provided then only commands whose name or description contains criteria will be displayed.
hm_info plugin <plugin> [page] FLAG_ADMIN (a) Lists all commands registered by the provided plugin. plugin can be the name, path, or number (order in which it was loaded) of the plugin. A search criteria may not be provided for this method.
hm_rcon <command ...> FLAG_RCON (r) Execute a single command as the server. Accepts Minecraft commands as well as any created by halfMod or any plugins.
hm_rehashfilter FLAG_CONFIG (f) Reload the console filter file (filled with regex patterns to ignore from server output). Located at ./halfMod/config/consolefilter.txt
hm_reloadadmins FLAG_CONFIG (f) Reload the admin config file. Located at ./halfMod/config/admins.conf.
hm_resetcvar <convar> FLAG_CVAR (h) Reset a ConVar to its default value.
hm_version none Print various version info.

admincmds

Command Flag Description
hm_ban <target> [minutes] [reason] FLAG_BAN (b) Ban player(s) for minutes minutes with reason. If minutes is empty or 0, the ban is permanent.
hm_banip <target|ip> [minutes] [reason] FLAG_BAN (b) IP ban player(s) or IP for minutes minutes with reason. If minutes is empty or 0, the ban is permanent.
hm_unban <player> FLAG_BAN (b) or FLAG_UNBAN (u) Lift a ban on a player's name. Always succeeds even if player is not banned.
hm_unbanip <player|IP> FLAG_BAN (b) or FLAG_UNBAN (u) Lift a ban on a player's name or an IP. When using an IP always succeeds even if IP is not banned. Fails when using a player's name if they have never connected to the server. Otherwise still succeeds even if they are not banned.
hm_kick <target> [reason] FLAG_KICK (k) Kick player(s) from the server.
hm_op <target> FLAG_OPER (o) Grant operator status for either player(s) or a specific player name.
hm_deop <target> FLAG_OPER (o) Revoke operator status for either player(s) or a specific player name.
hm_timeadd <time> FLAG_TIME (t) Add time to the world time.
hm_timeset <time> FLAG_TIME (t) Set the day time to time.
hm_weather <weather> FLAG_WEATHER (y) Clear or set the weather to weather.
hm_gamerule <gamerule> [value] FLAG_CVAR (h) Set gamerule to value or view the current value of gamerule.
hm_gamemode <mode> [target] FLAG_GAMEMODE (m) Set your own or another's gamemode.
hm_tphere <target> FLAG_ADMIN (a) Teleport player(s) to yourself.
hm_noclip [target] FLAG_ADMIN (a) Toggle noclip on yourself or player(s).
hm_drought FLAG_WEATHER (y) Enable/Disable an eternal drought.
hm_flood FLAG_WEATHER (y) Enable/Disable an eternal flood.
hm_smite <target> FLAG_SLAY (s) Strike down player(s) with lightning.
hm_rocket <target> FLAG_SLAY (s) Launch player(s) into the air like a firework.
hm_slay <target> FLAG_SLAY (s) Kill player(s).
hm_explode <target> FLAG_SLAY (s) Kill player(s) with an explosion.

advbans

Command Flag Description
hm_bline <pattern> [minutes] [reason] FLAG_BAN (b) Ban a username:uuid@ip mask for minutes minutes, 0 for permanent.
hm_kline <pattern> [minutes] [reason] FLAG_BAN (b) Auto kick a username:uuid@ip mask for minutes minutes, 0 for permanent.
hm_unbline <pattern> FLAG_UNBAN (u) Remove a bline pattern, but not any of the bans it created.
hm_unkline <pattern> FLAG_UNBAN (u) Remove a kline pattern.

baseplayerinfo

Command Flag Description
hm_seen <player> none Displays, to the entire server, how long it has been since a player was online. If player is online, displays how long they have been online.
hm_timetillday none Displays, to the entire server, how long until the sun will rise if it is night time. If it is day time, displays how much time is left in the day.
hm_whereami none Displays your current coordinates to the entire server.
hm_whois <target> FLAG_ADMIN (a) Displays, privately, everything halfMod knows about the player(s).

disco

Command Flag Description
hm_disco FLAG_INVENTORY (i) Toggle disco mode.
hm_votedisco FLAG_VOTE (i) All aboard the disco train!

easycompile

Command Flag Description
hm_compile <plugin> FLAG_ROOT (z) Unload, compile, and reload a plugin.

enderbow

Command Flag Description
hm_enderbow FLAG_CVAR (h) Enable/Disable ender bows.

flags

Command Flag Description
hm_flags <targets> [+/add|-/remove|toggle] <flags> FLAG_ROOT (z) Changes clients admin flags on the fly. The second argument defaults to toggle if left empty.

log

Command Flag Description
hm_captainslog <message> none Log something that only you can see.
hm_captainslog [N] none View N lines of the log.
hm_captainslog <N> <pattern> none View N lines of the log containing pattern.
hm_captainslog <N> filter text|wild|regex <pattern> none Set the type of pattern to be text, wildcard, or regex.
hm_publiclog [message] none Log something publicly.
hm_publiclog [N] none View N lines of the log.
hm_publiclog <N> <pattern> none View N lines of the log containing pattern.
hm_publiclog <N> filter text|wild|regex <pattern> none Set the type of pattern to be text, wildcard, or regex.

mailbox

Command Flag Description
hm_message <player> <message ...> none Leave a message for player.
hm_sendchest <player> [message ...] none Stand on top of a chest to seal and mail its contents to player.
hm_senditem <player> [message ...] none Throw an item on the ground and send it to a player.
hm_sendxp <player> <XP> [message ...] none Send XP experience levels to player. XP must be valid, and you must have enough to send. XP will be sent as actual XP points instead of levels. The exact amount of XP points you lost will be given to player.
hm_mailbox none Check your mailbox.
hm_mb_open <N> none Open the Nth item in your mailbox.
hm_mb_accept <N> none Accept the attachment from the Nth item in your mailbox.
hm_mb_return <N> [message ...] none Return the attachment from the Nth item in your mailbox to the original sender with an optional message.
hm_mb_delete <N> none Delete the Nth item in your mailbox. You will lose any unclaimed attachments.

motd

Command Flag Description
hm_motd_reload FLAG_CHAT (c) Reload the motd files.

skulldrop

Command Flag Description
hm_givemehead <player> FLAG_CHEATS (x) Get the head of a player.

statbar

Command Flag Description
hm_statbar on|off FLAG_CHAT (h) Enable/Disable the statbar.
hm_statbar timer <N> FLAG_CHAT (h) Set the amount of seconds to wait between updates.
hm_statbar displayteam [color] FLAG_CHAT (h) Define a team to display the statbar for. Empty team will display to everyone.
hm_statbar displaytype <graph|list> FLAG_CHAT (h) Set the display type to either graph or list. Graph can only display one stat while list can have many.
hm_statbar addstat <totalmemory|usedmemory|freememory|halfmodmemory|minecraftmemory|totalcpu|halfmodcpu|minecraftcpu|uptime> FLAG_CHAT (h) Add a stat to be displayed.
hm_statbar removestat <totalmemory|usedmemory|freememory|halfmodmemory|minecraftmemory|totalcpu|halfmodcpu|minecraftcpu|uptime> FLAG_CHAT (h) Remove a stat from being displayed.

telepearl

Command Flag Description
hm_telepearl [player] FLAG_SLAY (s) Set the player that your enderpearls will summon. Empty player will disable the telepearl for you so your pearls will work like normal.

villager_shops

Command Flag Description
hm_newshop <profession#[,career#=1]|random> [noai=false] [invulnerable=false] [custom_name] none noai and invulnerable each cost 1 diamond, custom_name is free.
hm_restockshop none Restock and receive payments from a villager shop.

vote

Command Flag Description
hm_createvote <agenda> FLAG_VOTE (v) Initiate a vote.
hm_createvote <agenda> <candidate 1> <candidate 2> [more candidates ...] FLAG_VOTE (v) Initiate a vote.
hm_vote <#> none Cast a vote.
hm_voterun <command> <agenda> FLAG_VOTE (v) Initiate a vote to run a command. command can be separated with semi-colons to set different commands for each candidate.
hm_voterun <command> <agenda> <candidate 1> <candidate 2> [more candidates ...] FLAG_VOTE (v) Initiate a vote to run a command.

warp_points

Command Flag Description
hm_warp <name> none Warp to a point.
hm_warpadd <name> FLAG_ADMIN (a) Create a new warp point. Uses current coords.
hm_warpadd <name> <dimension> <x> <y> <z> FLAG_ADMIN (a) Create a new warp point. Uses the specified coords.
hm_warpmenu none Open the warp menu.
hm_warprem <name> FLAG_ADMIN (a) Remove a warp point.

Clone this wiki locally