Module: gameplay.carpet.fake_player_manager
Overview
This module provides fake player management for carpet mod.
Color Boxes
◉ This module introduces the authority for each fake-player.
-
Disables the
/player shadowcommand. -
For each
fake-player, theplayerwhospawnedit is itsowner player. -
For each
fake-player, it can only beinteracted(right-click) with by itsowner player. -
For each
fake-player, it can only bemanipulated(The/playercommand) by itsowner player. -
The
console,the opsorthe owner playerare considered authorized.
◉ This module allows you to define the naming-format for fake-player.
You can define a prefix and suffix for fake player names.
The fake player name argument value will be transformed when you use /player <playerName> spawn command.
◉ This module introduce the spawn caps limit and expiration time for each fake player.
-
You can define the
spawn caps limitat different time. -
You can specify the
max living durationfor each fake player. (By default, it is12h.) -
A player can use
/player renewcommand torenewtheexpiration timefor all of its fake players. -
The
consolecan bypass thespawn caps limit.
Configurations
The following JSON content is provided for reference only. It must NOT be copied directly into the configuration directory, as it does not represent valid JSON syntax.
- File Name:
config.json - File Content:
Click to see the default content...
{
/* The `rules` to define how many fake-players can each player spawned. (At different times)
The tuple means (`day_of_week`, `minutes_of_the_day`, `max_fake_players_per_player`)
The range of `day_of_week` is `[1, 7]`
The range of `minutes_of_the_day` is `[0, 1440]`
Taken the tuple `(1, 0 2)` for example.
The rule says, if `day_of_week` >= 1, and `minutes_of_the_day` >= 0, then the `max_fake_players_per_player` is now `2`.
You can define multiple `rules`.
Rules are matched from up to down.
The first matched rule will be used. */
"caps_limit_rules": [
[
1,
0,
2
]
]
/* The `renew duration` when using the `/player renew` command. */,
"renew_duration_ms": 43200000
/* The format of `fake player name`.
You can use this option to define the `prefix` and `suffix` of `fake player name`. */,
"transform_name": "_fake_%s"
}
Jobs
- Job Name:
ManageFakePlayersJob - Document: This
jobis used to check thefake-player caps limitfor each player.
Commands
-
Command Syntax:
/player renew -
Document: Renew the expiration time of
allfake-player you havespawned. -
Can be executed by console:
false -
Required Level Permission:
0 -
Required String Permission:
null
-
Command Syntax:
/player who -
Document: List all fake-player and its owner player.
-
Can be executed by console:
true -
Required Level Permission:
0 -
Required String Permission:
null