限时抢购 50% 全场服务器优惠 最后一天!
距结束还剩: 00D 00H 00M 00S
background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
分类

Just Cause 3 Multiplayer 管理员与命令


本指南介绍 Just Cause 3 Multiplayer(JC3:MP)的服务器管理,包括基于脚本的管理工具、玩家管理和服务器管理技巧。

前提条件: 本指南假设您的服务器已在运行。如果您需要先设置服务器,请参阅 Just Cause 3 Multiplayer 服务器设置指南

管理概述

JC3:MP 没有内置的管理员命令系统。所有服务器管理均通过服务器端 JavaScript 包(脚本)处理。社区已创建了提供踢出、封禁、传送等管理命令的管理包。

安装管理包

  1. GPanel 中停止您的服务器。
  2. 从 JC3:MP 社区资源或 JC3:MP Wiki 下载管理脚本包。
  3. 使用文件管理器SFTP 将包文件夹上传到服务器的 packages/ 目录。
  4. 每个包应至少包含一个 main.js 文件和一个 package.json
  5. 启动服务器。控制台应确认包已成功加载。

常用管理命令

具体命令取决于您安装的管理包。大多数社区管理包通过游戏内聊天提供以下命令:

命令 描述
/kick [player] 将玩家从服务器移除
/ban [player] 永久封禁玩家
/unban [player] 解除玩家的封禁
/tp [player] 传送到玩家所在位置
/tphere [player] 将玩家传送到您的位置
/vehicle [name] 在您的位置生成载具
/weather [type] 更改服务器天气
/time [hours] 设置时间
注意: 这些命令因管理包而异。请查看您所使用的管理脚本的文档以了解确切的命令语法和可用功能。

服务器控制台

GPanel 控制台显示服务器输出,包括玩家连接、断开连接和脚本错误。您可以直接从 Console 选项卡监控服务器活动。

服务器通过 Ctrl+C 优雅停止(当您在 GPanel 中点击 Stop 时会自动处理)。

玩家管理

封禁列表

使用管理包时,被封禁的玩家通常存储在包数据目录中的 JSON 文件中(例如 packages/admin/bans.json)。您可以手动编辑此文件以添加或移除封禁:

  1. 停止您的服务器。
  2. 文件管理器中打开封禁列表文件。
  3. 根据需要添加或移除条目。
  4. 保存并重启服务器。

密码保护

要限制服务器的访问,请在 GPanel 的 Startup 选项卡中设置 SERVER_PASSWORD 启动变量,或编辑 config.json 中的 password 字段。

自定义脚本

JC3:MP 支持使用 JavaScript 编写自定义服务器端脚本。要创建自定义包:

  1. packages/ 中创建新文件夹(例如 packages/my-script/)。
  2. 创建包含包名称和入口点的 package.json
  3. 创建包含脚本逻辑的 main.js 文件。
  4. 重启服务器以加载新包。

package.json 示例

{
    "name": "my-script",
    "main": "main.js"
}

main.js 示例

jcmp.events.Add('PlayerReady', (player) => {
    player.SendChatMessage('Welcome to the server!');
});

故障排除

问题 解决方案
管理命令不起作用 验证管理包是否已加载(检查控制台的加载消息)。确认您的 Steam ID 在包配置的管理员列表中。
包加载失败 检查控制台中的 JavaScript 错误。确保 package.json 有效且 main.js 文件存在。
玩家无法连接 验证服务器正在运行且端口正确。检查客户端是否已安装 JC3:MP 模组。

相关文章

需要帮助? 如果您遇到本指南未涵盖的问题,请 提交工单,我们的团队将为您提供帮助。

这篇文章对您有帮助吗?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.