Fake AFK
Allows players to create fake players from Carpet Mod without significantly changing the games balance
The mod only needs to exist server-side, and it requires Carpet Mod to work
Commands
/afk:ready after running, a Fake Player will be created at your position when you log off, and disappear once you log back on
/afk:summon summons your Fake Player for 5 minutes, so you can give it items, or kill it to get any items it picked up - the limited time means some simple tasks that require two people can be done, but anything complex cant
/afk:name rename your Fake Player, all names need to include a "-", which regular usernames can't, so its always clear who is a real player
(this restriction is removed for opped players, so be careful, having another player on your server as your afk player will almost certainly cause issues!)
Config
Fake AFK's config and data can be found in config/fake_afk.txt, and looks like this:
| name: default value | description |
|---|---|
| name_permission_level: 0 | permission level needed for /afk:name to be usable |
| ready_permission_level: 0 | permission level needed for /afk:ready to be usable |
| summon_permission_level: 0 | permission level needed for /afk:summon to be usable |
| allow_real_names_permission_level: 3 | permission level needed for /afk:name to allow names without - |
| mspt_kick_limit: -1 | kicks afk players if the mspt goes above the limit, by default minecraft aims for 50mspt, so a limit of 100 will mean if the game is running at half speed it kicks (-1 for disabled) |
| mspt_kick_type: 1 | every minute, if the mspt is over the limit, what should happen?: 1 - kick player whose been fake afk the longest 2 - kick all fake afk players |
| max_afk_limit: -1 | max number of people who can be fake afk at once |
| max_afk_type: 1 | when a new person tries to afk, what should happen?: 1 - kick player whose been fake afk the longest 2 - dont allow more fake afk players |
| max_afk_ticks: -1 | max time in ticks people can fake afk for, -1 is unlimited |
| max_summon_ticks: 6000 | max time in ticks people can /afk:summon their fake players for, -1 is unlimited |
| names: | list of what people have named their fake players: |
| 9c3adf8d-a723-... nettakrim-is-afk |
For reference, this is what the permission levels are:
ALL = 0- everyoneMODERATORS = 1- people who can build in spawn chunksGAMEMASTERS = 2- people with /gamerule, /fill, /execute, /tp, ... (also the level command blocks, datapacks etc. have)ADMINS = 3- people with /kick, /ban, /op, ...OWNERS = 4- people with /stop, /save
All Versions
+ Add Version- updated to 26.1/2
# watch out!! currently items given to fake players are not safe, this is a carpet bug
fixed bug where proper servers actually only have a limit of 16 characters in a name (whereas singleplayer carpet mod can do 40)
there is likely still the bug where sometimes the fake players appear at your bed, but i cant reproduce this sooo....
also the particles that appear when summoning the fake player have changed a little, but i think as a whole the mod has been confirmed as stable enough to be called released
- fixed afk info appearing every time you logged back in, instead of only once
- renaming now dispels the old fake player if one is summoned
- names can no longer be more than 40 characters (configurable in the range 20-40)
- fake player inventory is now returned to the player when renamed, if the player inventory cant hold the item it gets thrown in front of them
- chat now says the actual reason a name isnt allowed
- added config for how long summons last
- added config for putting a limit on how long you can fake afk for
- config now reloads on /reload
- added config for kicking based on mspt
- added config for kicking based on max afk players
- added config for command permissions
- added config for max afk/summon time
- added fun sound effects and particles on summoning/dispelling
- /afk:name can no longer be used to name your fake player the same as someone elses
- /afk:ready to summon your fake player when you leave
- /afk:name to name your fake player
- /afk:summon to temporarily summon your fake player