ladysnake / impersonate Goto Github PK
View Code? Open in Web Editor NEWImpersonate: to assume or act the character of
Home Page: https://ladysnake.github.io/wiki/impersonate.html
License: GNU Lesser General Public License v3.0
Impersonate: to assume or act the character of
Home Page: https://ladysnake.github.io/wiki/impersonate.html
License: GNU Lesser General Public License v3.0
Hi, I run a 1.19 server for myself and my friends, and I was hoping to add this mod to the server. I have also recently added the mod PlayerPig. However, when I tried using the impersonation command, it crashed the server, and then would not let me join subsequently, until I restarted the server without this mod enabled.
I was not sure if it was because of the PlayerPig mod, or because of this mod that the issue was occuring, and wanted to reach out to see if you knew anything about this?
I have also attached the error log. Please let me know if there's anything else I can do to help!
https://pastebin.ubuntu.com/p/ZzhhpDfqpx/
is the latest.log showing the error of the preLaunch . not sure what would of prompted this to start now.
without the actual mod impersonate.. i found it was loaded impersonate 2.4.1 via bewitchment
so im guessing its on their side.
https://pastebin.ubuntu.com/p/pnPfhkKFf9/
is the log when bewitchment loads impersonate
java.lang.NullPointerException: Cannot invoke "net.minecraft.class_3218.method_8450()" because the return value of "net.minecraft.server.MinecraftServer.method_30002()" is null
at Not Enough Crashes deobfuscated stack trace.(1.16.5+build.5) ~[?:?]
at net.minecraft.server.MinecraftServer.getGameRules(MinecraftServer:1463) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.localvar$znf000$revealImpersonatorsInMessages(MinecraftServer:2725) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.sendSystemMessage(MinecraftServer) ~[intermediary-server.jar:?]
at net.minecraft.server.command.ServerCommandSource.sendFeedback(ServerCommandSource:215) ~[?:?]
at me.lucko.luckperms.fabric.FabricSenderFactory.sendMessage(FabricSenderFactory.java:80) ~[LuckPerms-Fabric-5.3.16.jar:?]
at me.lucko.luckperms.fabric.FabricSenderFactory.sendMessage(FabricSenderFactory.java:44) ~[LuckPerms-Fabric-5.3.16.jar:?]
at me.lucko.luckperms.common.sender.AbstractSender.sendMessage(AbstractSender.java:85) ~[LuckPerms-Fabric-5.3.16.jar:?]
at me.lucko.luckperms.common.locale.Message$Args1.send(Message.java:4059) ~[LuckPerms-Fabric-5.3.16.jar:?]
at me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.enable(AbstractLuckPermsPlugin.java:117) ~[LuckPerms-Fabric-5.3.16.jar:?]
at me.lucko.luckperms.fabric.LPFabricBootstrap.onServerStarting(LPFabricBootstrap.java:146) ~[LuckPerms-Fabric-5.3.16.jar:?]
at net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$0(ServerLifecycleEvents.java:37) ~[77dfdc3a-f1c7-477e-a321-79b82f1c8a7a.jar:?]
at net.minecraft.server.MinecraftServer.handler$znl000$beforeSetupServer(MinecraftServer:3238) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer:645) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer:257) ~[intermediary-server.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
[18:29:41] [Server thread/ERROR] (Minecraft) This crash report has been saved to: /home/justsnoopy30/Projects/Minecraft Servers/Fabric/SMP/./crash-reports/crash-2021-03-29_18.29.41-server.txt
[18:29:41] [Server thread/INFO] (Beacon) Disabling Beacon v0.7.2...
[18:29:41] [Server thread/INFO] (Beacon) Disabling plugins has not been implemented yet!
[18:29:41] [Server thread/INFO] (Beacon) Disabled Beacon v0.7.2!
[18:29:41] [Server thread/INFO] (luckperms) Starting shutdown process...
[18:29:41] [Server thread/ERROR] (Minecraft) Exception stopping the server
java.lang.NullPointerException: Cannot invoke "me.lucko.luckperms.common.treeview.PermissionRegistry.close()" because "this.permissionRegistry" is null
at Not Enough Crashes deobfuscated stack trace.(1.16.5+build.5) ~[?:?]
at me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.disable(AbstractLuckPermsPlugin.java:228) ~[LuckPerms-Fabric-5.3.16.jar:?]
at me.lucko.luckperms.fabric.LPFabricBootstrap.onServerStopping(LPFabricBootstrap.java:150) ~[LuckPerms-Fabric-5.3.16.jar:?]
at net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$4(ServerLifecycleEvents.java:62) ~[77dfdc3a-f1c7-477e-a321-79b82f1c8a7a.jar:?]
at net.minecraft.server.MinecraftServer.handler$znl000$beforeShutdownServer(MinecraftServer:3248) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.shutdown(MinecraftServer) ~[intermediary-server.jar:?]
at net.minecraft.server.dedicated.MinecraftDedicatedServer.shutdown(MinecraftDedicatedServer:567) ~[?:?]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer:707) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer:257) ~[intermediary-server.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]```
I'm planning to add impersonate to my minecraft server, and added LuckPerms aswell so that I could use the custom Impersonate commands that are in the mod for players that wouldn't be opped. I went to test that it would work but when I tried to add that node to the default group, it wouldn't work and would just say "LuckPerms 5.4.25 installed" or something like that. I looked into the issue and it said I needed some extra plugins for it to work. But those plugins are just that. Plugins. In order for Impersonate to work, I would have to be on fabric, and these extra plugins didn't support a fabric verison. Any ideas on how to get the depenancies for fabric?
At the current moment with the last fix in version 17 of Bewitchment illumination particles now get hidden with the spectral bangle properly allowing players to sneak with their particles. I wonder if there is a way to allow polymorph to hide particles also as these give away a players true identity.
The same bit of code identifying a player as invisible might be able to be applied to the polymorph potion without actually making them go invisible. In a sense the player as we knew them is invisible and they look like another.
I'm not sure if this would be better suited for impersonations compatibility. But figured I would share it here as this is what we found on my server with my modpack. Players that impersonate someone else with polymorph must still go and turn off their particles then restart their game to get illumination particles to disappear and not blow their cover.
^^^ This is a copy of what I posted to Bewitchments issues, the creator informed me that if there was to be a fix for this on Bewitchments end that it would be very hacky in their code. So I am hoping that maybe we are able to get something here with compatibility for impersonations to allow illumination particles to be hidden with the minecraft invisibility tag.
Hey my minecraft crashes only in singleplayer. When i install Impersonate it crashes when i never installed Impersonate on the Curseforge Profile it crashes. here is my crashlog https://mclo.gs/C56G0tN
I believe some mod depends on it or something or has it inside the mod idk
I get a crash on launch. I thought it was ARRP from inside Modern Industrialization. I reported it to them and they seemed to think it was a compatibility issue with the Impersonate mod and that I should report it here. Iโm on Minecraft 1.18, Fabric loader 0.12.8.
This is the crash report I get:
net.fabricmc.loader.impl.FormattedException: java.lang.RuntimeException: Could not execute entrypoint stage 'preLaunch' due to errors, provided by 'advanced_runtime_resource_pack'!
at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:159)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:71)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: java.lang.RuntimeException: Could not execute entrypoint stage 'preLaunch' due to errors, provided by 'advanced_runtime_resource_pack'!
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$0(EntrypointUtils.java:51)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:49)
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35)
at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:157)
... 2 more
Caused by: net.fabricmc.loader.api.EntrypointException: Exception while loading entries for entrypoint 'preLaunch' provided by 'advanced_runtime_resource_pack'
at net.fabricmc.loader.impl.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:56)
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47)
... 4 more
Caused by: java.lang.RuntimeException: Mixin transformation of net.devtech.arrp.ARRP failed
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:234)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:136)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:155)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at net.fabricmc.loader.impl.util.DefaultLanguageAdapter.create(DefaultLanguageAdapter.java:50)
at net.fabricmc.loader.impl.entrypoint.EntrypointStorage$NewEntry.getOrCreate(EntrypointStorage.java:117)
at net.fabricmc.loader.impl.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:53)
... 5 more
Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [mixins.impersonate.common.json:MutableTextMixin] from phase [DEFAULT] in config [mixins.impersonate.common.json] from mod [impersonate] FAILED during PREPARE
at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:638)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinPrepareError(MixinProcessor.java:585)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.prepareConfigs(MixinProcessor.java:543)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.select(MixinProcessor.java:462)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.checkSelect(MixinProcessor.java:438)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:290)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:229)
... 13 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTargetAlreadyLoadedException: Critical problem: mixins.impersonate.common.json:MutableTextMixin target net.minecraft.class_5250 was loaded too early.
at org.spongepowered.asm.mixin.transformer.MixinInfo.readDeclaredTargets(MixinInfo.java:948)
at org.spongepowered.asm.mixin.transformer.MixinInfo.(MixinInfo.java:882)
at org.spongepowered.asm.mixin.transformer.MixinConfig.prepareMixins(MixinConfig.java:852)
at org.spongepowered.asm.mixin.transformer.MixinConfig.prepare(MixinConfig.java:777)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.prepareConfigs(MixinProcessor.java:540)
... 19 more
This mod will crash the server, even though the installation steps are followed as described.
Steps to reproduce:
Terminal output
https://pastebin.com/pwF9HRdu
delete me im a mistake
A friend and I are planning to use impersonate for some multiplayer shenanigans in the near future, but the feature that shows the new player's username in the player list on servers kind of gives away that there's someone disguised as a certain player when the player you're impersonating joins. Showing two of the same player on the player list.
Therefore, I propose some sort of solution: A gamerule that hides the impersonating player from the player list if the true player that is being impersonated by someone else joins and is online. For example:
Someone impersonates the Notch account. And on the tab player list, it shows Notch just normally. But when the real Notch account joins, it won't show two Notches on the player list, just one.
I use a Polymorph potion, which leads to the server crashing and it has to restart. When I try joining again, it crashes. It's fixed when I remove the Polymorph effect from my NBT data, though.
I was told by the (I assume lead) Bewitchment dev to report to you all here. :)
crash-2022-07-20_21.40.42-server.txt
Using Fabric Discord Link with this mod, the discord chat link is able to see both usernames as admins see when the game rule is enabled. Even disabling this option does not fix this issue. This is most likely because the server logs always display both names. Would it be possible to add a config option to enable/disable this.
[01:09:41] [main/FATAL]: Failed to start the minecraft server
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'impersonate'!
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke0(EntrypointUtils.java:53) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke(EntrypointUtils.java:36) ~[fabric-server-launch.jar:?]
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointServer.start(EntrypointServer.java:32) ~[fabric-server-launch.jar:?]
at net.minecraft.server.Main.main(Main.java:125) [intermediary-server.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_251]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_251]
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:140) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.knot.KnotServer.main(KnotServer.java:26) [fabric-server-launch.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_251]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_251]
at net.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:61) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:105) [fabric-server-launch.jar:?]
at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:49) [fabric-server-launch.jar:?]
Caused by: java.lang.NoClassDefFoundError: net/fabricmc/fabric/api/gamerule/v1/GameRuleFactory
at io.github.ladysnake.impersonate.impl.ImpersonateGamerules.(ImpersonateGamerules.java:27) ~[Impersonate-2.0.1.jar:?]
at io.github.ladysnake.impersonate.Impersonate.onInitialize(Impersonate.java:49) ~[Impersonate-2.0.1.jar:?]
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke0(EntrypointUtils.java:50) ~[fabric-server-launch.jar:?]
... 17 more
Caused by: java.lang.ClassNotFoundException: net.fabricmc.fabric.api.gamerule.v1.GameRuleFactory
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_251]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
at net.fabricmc.loader.launch.server.InjectingURLClassLoader.loadClass(InjectingURLClassLoader.java:56) ~[fabric-server-launch.jar:?]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
at net.fabricmc.loader.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:161) ~[fabric-server-launch.jar:?]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
at io.github.ladysnake.impersonate.impl.ImpersonateGamerules.(ImpersonateGamerules.java:27) ~[Impersonate-2.0.1.jar:?]
at io.github.ladysnake.impersonate.Impersonate.onInitialize(Impersonate.java:49) ~[Impersonate-2.0.1.jar:?]
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke0(EntrypointUtils.java:50) ~[fabric-server-launch.jar:?]
... 17 more
I am trying to add this to a 1.17 server can anyone tell me what fabric API it is specifically
Minor:
This is by no means a flaw with the versioning scheme, but I did want to make you aware that because it only includes the mod version and no indication of the fabric version within that label, when it gets pulled up on ATlauncher, people are forced to visit the page, look up which modloader versions correspond to the mod version before selecting them.
I don't think this will change anytime soon. I'm not familiar enough with other clients that allow downloading of mods, but I'd be willing to check into it if anyone has a list of them they'd like me to try just to gauge current impact.
Within a multiplayer server I attempted to polymorph into someone but immediately crashed the server. The other people can log in but when I attempt to do so it crashes and boots everyone out.
This is the error from the console:
[03:47:31] [Netty Epoll Server IO #2/ERROR]: Error receiving packet 52 java.lang.IllegalArgumentException: Don't know how to serialize io.github.ladysnake.impersonate.impl.ImpersonateTextContent@5cba4f2e as a Component
Heres the log
https://pastebin.com/KijbYxFV
Using Impersonate and FabricProxy Lite causes crash on server start. Is there anything that can be done to fix this? I need Impersonate as Bewitchment depends on it.
When attempting to run a Bewitchment and dependencies alongside cardboard the server will crash and give the following report. I've also taken the ending of the server log before/during the crash. And hopefully having the client latest log can give all the information I can help gather on the subject. I'm also opening up a ticket on their github regarding the same issue at hand.
Hello. If Impersonate is installed on the server, then clients with the MinecraftCapes mod for some reason do not see their capes.
This is from requirem right?
[ForkJoinPool-1-worker-6/WARN]: The mod "impersonate" contains invalid entries in its mod json:
It appears it might be causing a crash otherwise
Some players on my server drank a bewitchment polymorph potion and whenever they try joining, it kicks all the other players out of the server. The server doesn't crash and it doesn't seem like anything important shows up in the console.
Log of the situation:
Gist Link
Would you be able to add LuckPerms support or config to allow non-opped players to use the command?
I am trying to make a cinematic with the dreamSMP members skins. Although when i type
impersonate disguise as GeorgeNotFound
it will not set me as his skin. The same things happens with all of the other members. It seems like it is famous people that it wont allow me to get the skin. In chat it does say
Started impersonating GeorgeNotFound
and my character does its little spin, but it doesnt set me as his skin. im not sure why it does this.
It also will sometimes set my skin to a Dream skin, but not george's. Im not sure why it does that.
but thank you for reading this! it is an awesome mod and it has served me great!
if you impersonate into someone with a luckperms prefix/suffix that in combination with their username is longer than 16 characters (for example if my prefix is 10 characters and my username is 10 characters), it would be longer than 16 characters when you try to impersonate them, causing you to essentially be softbanned until the impersonation is cleared in some way because the game wont let you join with a username longer than 16 characters
this also seems to cause everyone else on the server to disconnect? i wasnt disconnected for some reason (i suspect its because i have /op
)
the person with the blue colored prefix is the real person, the one that has the yellow tag is the one impersonating him.
I am using the 1.17 version of the mod, if that narrows anything down.
My friend got the migrator cape but on a server with this mod installed it doesn't render. Removing the mod fixes this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.