JoinCommands

版本 v1.0.5·更新於 2026-09-12

Runs a configurable set of commands on a player joining

截圖 共 1 張

模組介紹 作者原文

Join Commands

A lightweight Hytale server plugin that runs a configurable list of commands every time a player joins the server. Useful for granting starter items, sending welcome messages, teleporting players to a spawn world, or running any other command-driven setup that needs to happen on connection.

Features

  • Runs any number of commands on player join, in the order they appear in the config.
  • Supports running commands as the joining player or as the console, so you can mix elevated-permission setup with ordinary player actions.
  • Supports per-player command lists, keyed by UUID, that run in addition to the global list. Per-player lists also support both player-executed and console-executed commands.
  • Skips empty entries, so leaving blank lines in your config will not cause errors.
  • Accepts commands with or without a leading slash. /give coins --quantity=100 and give coins --quantity=100 both work.
  • Logs each dispatched command for easy debugging, including which sender (player or console) ran it.
  • Catches and reports failures per command, so one broken entry will not stop the rest from running.
  • Optional integration with PlaceholderAPI. If the plugin is installed, placeholders such as %player_username%, %luckperms_prefix%, or any other registered expansion will be replaced before the command runs. Placeholders resolve against the joining player even when the command runs as the console.

Configuration

The config file is generated at mods/com.azuredoom_joincommands/joincommands.json on first startup. By default, it contains an empty command list, meaning nothing will run on join until you add entries.

Example:

{

"Commands": [

"coins --quantity=100",

"say Welcome to the server!",

"tp 0 64 0"

],

"ConsoleCommands": [

"echo %player_username% just joined!"

]

}

Each entry is run as if the joining player had typed it as a command. The player is the executor, so permissions are required to run commands.

Player commands vs. console commands

The plugin supports two execution contexts at every level of the config:

  • Commands – run as the joining player. The player is the executor, and the player's permissions are required for the command to succeed. Use this for actions you want the player to "perform" themselves.
  • ConsoleCommands – run as the server console (ConsoleSender). These bypass the player's permission set and run with full server authority. Use this for administrative actions like granting items, modifying ranks, or broadcasting messages, where the joining player should not need (or have) permission to run the command directly.

In both cases the joining player is still the placeholder context, so something like %player_username% will resolve to the joining player even inside a ConsoleCommands entry.

For each player, global commands run first (Commands, then ConsoleCommands), followed by any matching per-player entries.

Per-player commands

In addition to the global Commands list, you can define commands that run only for specific players, keyed by their UUID. These run after the global commands, so they layer on top rather than replacing them.

{

"Commands": [

"say Welcome to the server!"

],

"ConsoleCommands": [

"echo %player_username% just joined!"

],

"PlayerCommands": [

{

"Uuid": "550e8400-e29b-41d4-a716-446655440000",

"Commands": [

"coins --quantity=500",

"echo Welcome back, admin."

],

"ConsoleCommands": [

"coins --quantity=500 --player=%player_username%",

"lp user %player_username% parent set admin"

]

},

{

"Uuid": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",

"Commands": [

"tp 100 64 100"

]

}

]

}

Notes:

  • UUIDs are matched exactly. Use the standard dashed format shown above.
  • If a UUID is not found in the PlayerCommands list, only the global commands run for that player.
  • You can have multiple entries for the same UUID; all matching entries will run in the order they appear.
  • Both Commands and ConsoleCommands are optional inside a per-player entry. Include only the lists

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

檔案與校驗

檔案名稱
JoinCommands-1.0.5.zip
檔案大小
386.0 KiB
SHA-256
4a8061e65566a93c28b8892d58310853c4f0740218665061e15512b4d341246d
入庫時間
2026-10-10 18:23