Git Product home page Git Product logo

fake-players-spigot-plugin's Introduction

Fake Players (Spigot Plugin)

Fake Players is a Minecraft Spigot/Paper Spigot plugin, which allows server owners, administrators and developers to trick Spigot into thinking that there are new players logging in. This results in creating special Server-side bots, which can be used to test server's performance and other plugins.

fake-players-spigot-plugin's People

Contributors

kp56 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fake-players-spigot-plugin's Issues

We need an Update to turn on tests for Spigot 1.19

On startup you just get

[22:41:51] [Server thread/ERROR]: Could not load 'plugins\FakePlayers_2.4.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.IllegalArgumentException: No enum constant me.KP56.FakePlayers.MultiVersion.Version.v1_17_R1
	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:149) ~[server.jar:3124-Spigot-66f9d3c-384e116]
	at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:394) ~[server.jar:3124-Spigot-66f9d3c-384e116]
	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:301) ~[server.jar:3124-Spigot-66f9d3c-384e116]
	at org.bukkit.craftbukkit.v1_17_R1.CraftServer.loadPlugins(CraftServer.java:384) ~[server.jar:3124-Spigot-66f9d3c-384e116]
	at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:232) ~[server.jar:3124-Spigot-66f9d3c-384e116]
	at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:986) ~[server.jar:3124-Spigot-66f9d3c-384e116]
	at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[server.jar:3124-Spigot-66f9d3c-384e116]
	at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.IllegalArgumentException: No enum constant me.KP56.FakePlayers.MultiVersion.Version.v1_17_R1
	at java.lang.Enum.valueOf(Enum.java:273) ~[?:?]
	at me.KP56.FakePlayers.MultiVersion.Version.valueOf(Version.java:3) ~[?:?]
	at me.KP56.FakePlayers.Main.<init>(Main.java:40) ~[?:?]
	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78) ~[?:?]
	at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
	at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
	at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?]
	at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:350) ~[?:?]
	at java.lang.Class.newInstance(Class.java:642) ~[?:?]
	at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:79) ~[server.jar:3124-Spigot-66f9d3c-384e116]
	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:145) ~[server.jar:3124-Spigot-66f9d3c-384e116]
	... 7 more

Issue when using with minecord and bots despawn on server restart

hello, i get this spammed in console when i use your plugin with minecord,

>.... [03:42:32 WARN]: [Minecord] Task #556 for Minecord v1.7.14_2 generated an exception
java.lang.NullPointerException: null
>.... [03:42:32 WARN]: [Minecord] Plugin Minecord v1.7.14_2 generated an exception while executing task 555
java.lang.NullPointerException: null
at me.spomg.minecord.chat.ChatScheduler.run(ChatScheduler.java:195) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Paper-590]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.16.5.jar:git-Paper-590]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Paper-590]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_282]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_282]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]

the bots also seem to despawn when the server restarts

Multiple errors on FakePlayers summon

Paper 1.16.5-610
FakePlayers 1.6 (the second one, md5=dd98d6dc6e569249baacc16826e2ffb1)
ForceResourcepacks 1.10.13-b489

The ForceResourcepacks pack still is not accepted. Despite that, FakePlayers reports that the fake player successfully summoned.

> fakeplayers summon BABYZ
[08:37:07 INFO]: [ViaVersionStatus] BABYZ is using version UNKNOWN(-1).
[08:37:07 INFO]: [pHD] Adding player BABYZ UUID 4420a7a8-aeaa-4b27-9c57-f3c2bc485d0d to cache
[08:37:07 INFO]: [on first join] set player's balance to 1000
[08:37:07 INFO]: [LP] Set blackdog.visited.world to true for BABYZ in context global.
[08:37:07 INFO]: [Thirst] Adding player BABYZ with thirst 100
[08:37:07 ERROR]: [Plan] Ran into NullPointerException - logged to plugins/Plan/logs/NullPointerException-9391cb41f5.txt
[08:37:07 ERROR]: [Plan] (INCLUDE CONTENTS OF THE FILE IN ANY REPORTS)
[08:37:07 ERROR]: [Plan] Error msg: "null"
[08:37:07 INFO]: [Disease] Loading player BABYZ
[08:37:07 INFO]: Fake Players » Successfully summoned a Fake Player.
[08:37:07 INFO]: [Essentials] Creating empty config: /home/ram/MC/plugins/Essentials/userdata/4420a7a8-aeaa-4b27-9c57-f3c2bc485d0d.yml
[08:37:07 INFO]: BABYZ lost connection: Sorry, you must enable the BlackDog resourcepacks
Edit the configuration for the server and try again

The subsequent errors are probably due to the fake player losing their connection.
Denizen 1.2.0-b5518
ItemJoin 5.2.2-b700
Plan 5.2-b1234

[08:37:07 FATAL]: Error executing task on Server
java.lang.NullPointerException: null
        at net.minecraft.server.v1_16_R3.NetworkManager.handleDisconnection(NetworkManager.java:529) ~[patched_1.16.5.jar:git-Paper-610]
        at com.denizenscript.denizen.nms.v1_16.impl.network.handlers.DenizenNetworkManagerImpl.handleDisconnection(DenizenNetworkManagerImpl.java:980) ~[?:?]
        at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1262) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1255) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1391) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1126) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289) ~[patched_1.16.5.jar:git-Paper-610]
        at java.lang.Thread.run(Thread.java:834) [?:?]
[08:37:08 WARN]: [ItemJoin] Task #21890 for ItemJoin v5.2.2-SNAPSHOT-b700 generated an exception
java.lang.NullPointerException: null
        at me.RockinChaos.itemjoin.item.ItemUtilities.lambda$setInvSlots$5(ItemUtilities.java:593) ~[?:?]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Paper-610]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1423) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:418) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1338) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1126) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289) ~[patched_1.16.5.jar:git-Paper-610]
        at java.lang.Thread.run(Thread.java:834) [?:?]
[08:37:08 WARN]: [ItemJoin] Task #21891 for ItemJoin v5.2.2-SNAPSHOT-b700 generated an exception
java.lang.NullPointerException: null
        at me.RockinChaos.itemjoin.item.ItemUtilities.lambda$setInvSlots$5(ItemUtilities.java:593) ~[?:?]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Paper-610]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1423) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:418) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1338) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1126) ~[patched_1.16.5.jar:git-Paper-610]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289) ~[patched_1.16.5.jar:git-Paper-610]
        at java.lang.Thread.run(Thread.java:834) [?:?]
[0

Multiple errors on summon fake player

Spigot or Paper 1.16.5
FakePlayers 1.4

Executed FakePlayers summon B from the console. This produced many errors from interactions with other plugins, including

  • Denizen
  • Essentials
  • ForceResourcepacks
  • ItemJoin
  • LuckPerms (aka LP)
  • Plan
  • ViaVersionStatus
  • WorldGuard

Many of these have to do with the plugins trying to obtain information (sometimes from Vault) about the fake player, who has been assigned a UUID (in this case, c132c49c-385e-4d28-87a3-7a72f101a4cd) that does not exist IRL, so produces NPEs for player name. Probably, FakePlayers needs to intercept player lookups, to provide the fake name in response to the fake UUID. (It would be very bad to use an IRL UUID, although it is unclear how that can be avoided, since more will be randomly assigned in future.)

On our servers, a new player has to do -- at a minimum -- the following:

  • Get their client version checked (ViaVersionStatus)
  • Accept the server resourcepack (ForceResourcepacks)
  • Get assigned to group default (LuckPerms)
  • Get appropriately permissions menu items (ItemJoin)
  • Get teleported to a specific location, verified in a legal region (Essentials/WorldGuard)
  • Acquire funding (Essentials/Vault)

I have removed the stack traces for brevity. They can be provided on request.

[09:19:09 INFO]: [ViaVersionStatus] B is using version UNKNOWN(-1).

[09:19:09 ERROR]: Could not pass event ProcessPlayerEvent to WorldGuard v7.0.5-SNAPSHOT+2109-de22a5c
com.google.common.util.concurrent.UncheckedExecutionException: me.lucko.luckperms.bukkit.vault.ServerThreadLookupException: A Vault API request has been made on the main server thread that LuckPerms cannot safely respond to.
This is NOT a bug - please do not report it to LuckPerms.
Instead, please carefully read the information given below.

LuckPerms cannot respond to the request because to do so:
- it needs to lookup user data for 'c132c49c-385e-4d28-87a3-7a72f101a4cd' (an offline player) from the database

Performing this lookup on the main server thread would cause your server to lag.
There are two solutions to this problem:
  a) Ask the author of the plugin making the request to perform Vault calls for
     offline players "asynchronously" (using the scheduler). Additionally, prefer
     using the methods that accept 'Player' or 'OfflinePlayer' instead of usernames.
     You should be able to identify the plugin making the request in the trace below.
  b) As a server admin, you can disable this exception by setting 'vault-unsafe-lookups'
     to true in the LuckPerms configuration file. However, please use this only as
     a last resort.

[09:19:09 INFO]: [Essentials] Found player B by UUID c132c49c-385e-4d28-87a3-7a72f101a4cd but not by their actual name. They may have changed their username.

[09:19:09 INFO]: [LP] A user for B could not be found.

[09:19:09 ERROR]: [Plan] Ran into NullPointerException - logged to plugins/Plan/logs/NullPointerException-7ecbea1b67.txt

[09:19:09 INFO]: Fake Players » Successfully summoned a Fake Player.

[09:19:09 ERROR]: Could not pass event PlayerTeleportEvent to WorldGuard v7.0.5-SNAPSHOT+2109-de22a5c
com.google.common.util.concurrent.UncheckedExecutionException:

[09:19:09 WARN]: [Essentials] Task #58838 for Essentials v2.19.0-dev+103-195148a generated an exception
me.lucko.luckperms.bukkit.vault.ServerThreadLookupException: A Vault API request has been made on the main server thread that LuckPerms cannot safely respond to.
This is NOT a bug - please do not report it to LuckPerms.
Instead, please carefully read the information given below.

LuckPerms cannot respond to the request because to do so:
- it needs to lookup user data for 'c132c49c-385e-4d28-87a3-7a72f101a4cd' (an offline player) from the database

[09:19:09 INFO]: B lost connection: Sorry, you must enable the BlackDog resourcepacks
Edit the configuration for the server and try again

[09:19:09 FATAL]: Error executing task on Server
java.lang.NullPointerException: null
        at net.minecraft.server.v1_16_R3.NetworkManager.handleDisconnection(NetworkManager.java:529) ~[patched_1.16.5.jar:git-Paper-592]
        at com.denizenscript.denizen.nms.v1_16.impl.network.handlers.DenizenNetworkManagerImpl.handleDisconnection(DenizenNetworkManagerImpl.java:978) ~[?:?]

[09:19:10 WARN]: [ItemJoin] Task #60060 for ItemJoin v5.2.2-SNAPSHOT-b700 generated an exception
java.lang.NullPointerException: null

The bot has no rank

I cannot add prefix, suffix and permission for fakeplayers :(
Can the author fix them?

Thank !

Console error, server crashes

As you will see in the image, I had previously reported the same thing they said that in this update they would fix it but it continues to persist, my server is 1.16.5 and I just put the command to summon, the server it shows a big error, crashes
image

CONSOLE ERROR AND WARN

console error playerjoin and nextengine
console warn multiversion

As you will see in the images when generating the bot, this error appears

image
image

after a while i get this error and the server hangs and not

image

Bungeecord

Please update plugins that can run at bungeecord <3

/fakeplayers summon
i love u author

Option to disable update checker

FakePlayers 1.4

We block (almost) all outbound network calls on our servers. In addition, we have our own automagical update checker. Please provide a configuration option to disable the update checker.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.