Плагины/fakeplayer
fakeplayer

fakeplayer

A plugin for minecraft server to spawn fake players, inspired by Carpet Mod

11.3K
37

FakePlayer

This is a server side plugin inspired by Carpet-Mod for Minecraft 1.20.x and 1.21.x and above.

Click me to visit a demo video.

Features

  • Lets you spawn fake players who look like real to the server, they can keep chunk loading
  • Fake players can be recolonized by vanilla commands and plugin commands, such as /ban, /tp
  • You can open and edit their inventory via /fp invsee or Right-Clicking on them
  • You can fully control their moving, jumping, attacking... What's better ? Make it periodical
  • Each player can configure his personal configuration

Requirements

Config file

Fakeplayer only generates a template config file named config.tmpl.yml. You need to rename this file to config.yml as your configuration file. This approach can let you preview new content when you are upgrading it.

Commands

CommandDescriptionPermissionNote
/fp spawnSpawn a fake playerfakeplayer.command.spawn
/fp killKill a fake playerfakeplayer.command.kill
/fp killallKill all fake players on the serverOP
/fp selectSelect a fake player as defaultfakeplayer.command.selectAvailable when player spawned more then 1 fake players
/fp selectionView selected fake playerfakeplayer.command.selectionAvailable only when player spawned more then 1 fake players
/fp listList spawned fake playersfakeplayer.command.list
/fp distanceShow distance to a fake playerfakeplayer.command.distance
/fp dropDrop held itemfakeplayer.command.drop
/fp dropstackDrop entire stack of the held itemfakeplayer.command.dropstack
/fp dropinvDrop all items in the inventoryfakeplayer.command.dropinv
/fp skinCopy skin from another playerfakeplayer.command.skin60 seconds cooldown if copy from a offline player
/fp invseeOpen an inventory of a fake playerfakeplayer.command.invseeRight-clicking on fake players has the same effect
/fp sleepSleepfakeplayer.command.sleep
/fp wakeupWake upfakeplayer.command.wakeup
/fp statusShow player statusfakeplayer.command.status
/fp respawnRespawn a dead fake playerfakeplayer.command.respawnAvailable when server config does not kick on fake player death
/fp tpTeleport to a fake playerfakeplayer.command.tp
/fp tphereTeleport a fake player to youfakeplayer.command.tphere
/fp tpsSwap positions with fake playerfakeplayer.command.tps
/fp setChange the configuration of a fake playerfakeplayer.command.set
/fp configChange default configurationfakeplayer.command.config
/fp expmeTransfer exp to youfakeplayer.command.expme
/fp attackAttackfakeplayer.command.attack
/fp mineMinefakeplayer.command.mine
/fp useUse/Interact/Placefakeplayer.command.use
/fp jumpJumpfakeplayer.command.jump
/fp stopStop all actionsfakeplayer.command.stop
/fp turnTurn aroundfakeplayer.command.turn
/fp lookLook at specified locationfakeplayer.command.look
/fp moveMovefakeplayer.command.mvoe
/fp rideRidefakeplayer.command.ride
/fp sneakSneakfakeplayer.command.sneak
/fp sprintSprintingfakeplayer.command.sprint
/fp swapSwap main and off-hand itemsfakeplayer.command.swap
/fp holdHold corresponding hotbar itemfakeplayer.command.hold
/fp cmdExecute commandfakeplayer.command.cmd
/fp reloadReload config fileOP

Personal Configuration

Each player can configure his own configuration, it will take effect on the next spawning

Command examples:

  • /fp config list - View all personalized configurations
  • /fp config set collidable false - Set personalized configuration
Configuration ItemNote
collidableWhether collision box is enabled
invulnerableWhether invincible mode is enabled
wolverineWhether super heal mode is enabled
look_at_entityAutomatically look at nearby attackable entities (including players), can be combined with attack to automatically fight monsters
pickup_itemsWhether to pick up items
skinWhether to use your skin
replenishWhether to auto-replenish
autofishWhether to autofish

Permissions

Click to visit

Each command has its own permission node, but we provided some permissions packs

Permission fakeplayer.spawn

fakeplayer.spawn includes the following permissions:

  • fakeplayer.command.spawn - Create fake player
  • fakeplayer.command.kill - Kill fake player
  • fakeplayer.command.list - List fake players
  • fakeplayer.command.distance - View distance
  • fakeplayer.command.select - Select fake player
  • fakeplayer.command.selection - View selected fake player
  • fakeplayer.command.drop - Drop an item
  • fakeplayer.command.dropstack - Drop entire stack of items
  • fakeplayer.command.dropinv - Drop all inventory items
  • fakeplayer.command.skin - Copy skin
  • fakeplayer.command.invsee - View inventory
  • fakeplayer.command.status - View status
  • fakeplayer.command.respawn - Respawn fake player
  • fakeplayer.command.config - Set default settings
  • fakeplayer.command.set - Set fake player settings

Permission fakeplayer.tp

fakeplayer.tp includes the following permissions:

  • fakeplayer.command.tp
  • fakeplayer.command.tphere
  • fakeplayer.command.tps

Permission fakeplayer.action

fakeplayer.action includes the following permissions:

  • fakeplayer.command.attack - Attack
  • fakeplayer.command.mine - Mine
  • fakeplayer.command.use - Use
  • fakeplayer.command.jump - Jump
  • fakeplayer.command.sneak - Sneak
  • fakeplayer.command.sprint - Sprinting
  • fakeplayer.command.look - Look
  • fakeplayer.command.turn - Turn
  • fakeplayer.command.move - Move
  • fakeplayer.command.ride - Ride
  • fakeplayer.command.swap - Swap main and off-hand items
  • fakeplayer.command.sleep - Sleep
  • fakeplayer.command.wakeup - Wake up
  • fakeplayer.command.stop - Stop all actions
  • fakeplayer.command.hold - Switch hotbar
  • fakeplayer.config.replenish - Auto-replenish
  • fakeplayer.config.replenish.chest - Can replenish from nearby chests when auto-replenishing
  • fakeplayer.config.autofish - Autofish

If your server does not restrict various player commands, you can use this directly. fakeplayer.basic includes all secure permissions, except for /fp cmd commands.

Placeholder Variables

  • %fakeplayer_total%: Total count of fake players
  • %fakeplayer_creator%: The creator name of a fake player
  • %fakeplayer_actions: Active actions of a fake player such as : USE|ATTACK

Custom Translation

  1. Create a message folder in plugins/fakeplayer
  2. Copy this file to message folder
  3. Rename the file to message_language_region.properties such as message_en_us.properties
  4. Edit your config.yml, set i18n.locale to the name suffix which you just created such as en_us
  5. Type /fp reload-translation to reload translation file. If you change i18n.local, you should /fp reload first

Make sure the translation file is encoding with UTF-8

FAQs

xxx lost connection: PacketEvents 2.0 failed to inject

Some plugin change the Connection of the fake player, You can set prevent-kicking to ALWAYS to solve it.

# config.yml
prevent-kicking: ALWAYS

Fake players do not attract aggression

By default, fake players are in invincible mode. Players need to manually turn off invincible mode with /fp config set invulnerable false to attract aggression. After turning it off, they will receive hunger and health effects. You may need to use res or beacon to ensure the fake player's hunger and health.

Fake players automatically log out after a while

This may be because plugins like AutheMe detect that fake players have not logged in for a long time. You can include the login command in the configuration file's self-commands to prevent the plugin from kicking out players for being idle:

# Note: You should use a complex password, or AuthMe may reject it
self-commands:
  - '/register abc123! abc123!'
  - '/login abc123!'

Совместимость

Minecraft: Java Edition

1.20–1.21.4

Создатели

hello09x

hello09x

Владелец

Детали

Лицензия:Apache-2.0
Опубликован:1 год назад
Обновлён:1 год назад