Comments (3)
FakePlayer used to spawn in one, but now spawns two fake players by default. plugin_data/FakePlayer/players.json
contains a list of players to spawn in, users can modify the list to spawn in more (or remove existing) fake players, or use Loader::addPlayer()
to spawn a player during runtime.
from fakeplayer.
It's the latter, a player is spawned in with properties specified in players.json and (to a user) is indifferentiable from an actual player on the server.
The plugin does lack commands, I do intend to work on them. At the moment, the plugin is pretty useful in cases such as testing pvp mechanisms without needing another device or an emulator (like bluestacks).
It is sort of complicated to work on a /spawnplayer command because of how much data is associated with a player (see data associated with every entry in players.json).
F.e., the user would at minimum have to specify xuid, uuid and gamertag for each player they choose to spawn in, and using random values for xuid and/or uuid or making a typo may cause inconsistency in plugins that use these properties to index player data.
Though if an advanced user would still like to go overboard despite all of that, there's always an addPlayer() method to spawn fake players during runtime.
For the rest of us, I feel like fake players are better managed when player data is pre-configured in players.json (which is currently the case) so the room for such issues is reduced (though definitely possible). Perhaps users can have the option to spawn in a selected set of players from players.json rather than the plugin spawning in all entries within players.json.
from fakeplayer.
I am kind of confused about the orientation of this plugin. If it is supposed to be controlled from other code like puppeteer, it should not do something by itself. If it is supposed to be user-friendly without code, it should provide commands for spawning fake players.
from fakeplayer.
Related Issues (20)
- Crash
- More convenient ways to handle events
- Allow join time to be configurable HOT 1
- Preparing for initial release
- Crash upon startup HOT 1
- TypeError: "PreSpawnPacketHandler::__construct(): Argument #2 ($player) must be of type Player, null given HOT 2
- Memory Leak In Plugin HOT 1
- Error on start the server "setViewDistance on null" HOT 3
- Duplicate Chat HOT 1
- FakePlayer flying at me HOT 2
- Call to a member function setViewDistance() on null HOT 1
- Crash on starting the server HOT 3
- how can i use HOT 5
- Form response command should not hack PM property. HOT 1
- Bug HOT 1
- Tutorial HOT 1
- Crash HOT 2
- pm4 HOT 5
- Suggestion for Plugin HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fakeplayer.