Carpet

Carpet

2M Downloads

Can't spawn a fake player with LuckPerms installed.

Opened this issue ยท 8 comments

commented

Hello. I cannot spawn a fake player with the /player Alex spawn command if LuckPerms is installed on the server. When the command is executed, the message "An unexpected error occurred trying to execute that command" is displayed in the chat, and the console does not have any errors. How to fix this?

P.S. Minecraft 1.17.1, latest version of Carpet and latest version of LuckPerms.

commented

What text do you get in the tooltip when you hover over the red text saying "An unexpected error occurred trying to execute that command"? Can you please post of screenshot of you doing that?

When I hover over the red text, the tooltip just says "user".
https://prnt.sc/1bo9ii6

commented

What text do you get in the tooltip when you hover over the red text saying "An unexpected error occurred trying to execute that command"? Can you please post of screenshot of you doing that?

commented

I was going to suggest that you try reproducing this with Why Did My Command Fail installed in order to (hopefully) print more debug information, however, that mod is incompatible with Carpet mod.

Alternatively, can you please try running the command /script run run('player Alex spawn') and posting a screenshot of the output?

commented

I was going to suggest that you try reproducing this with Why Did My Command Fail installed in order to (hopefully) print more debug information, however, that mod is incompatible with Carpet mod.

Alternatively, can you please try running the command /script run run('player Alex spawn') and posting a screenshot of the output?

"Why Did My Command Fail" not working at all with Carpet installed.

Script output: https://prnt.sc/1bofatx

I ran the command /carpet superSecretSettings true and now an exception appears in the console when I execute the command /player Alex spawn: https://hastebin.app/60f1207051a8e5001ddfe915

commented

Copied exception from paste:

[07:59:25] [Server thread/ERROR]: Command exception: /player Alex spawn
java.lang.NullPointerException: user
        at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
        at me.lucko.luckperms.common.api.implementation.ApiPlayerAdapter.getUser(ApiPlayerAdapter.java:60) ~[LuckPerms-Fabric-5.3.51.jar:?]
        at eu.pb4.bof.mods.LuckPermsPlaceholders.lambda$register$0(LuckPermsPlaceholders.java:29) ~[box-of-placeholders-1.3.1+1.17.1.jar:?]
        at eu.pb4.placeholders.util.PlaceholderUtils.parsePlaceholderFromMap(PlaceholderUtils.java:227) ~[9d0c1b41-3862-44bd-bad1-2f94190bb22f.jar:?]  
        at eu.pb4.placeholders.util.PlaceholderUtils.recursivePlaceholderParsing(PlaceholderUtils.java:59) ~[9d0c1b41-3862-44bd-bad1-2f94190bb22f.jar:?]
        at eu.pb4.placeholders.PlaceholderAPI.parseText(PlaceholderAPI.java:44) ~[9d0c1b41-3862-44bd-bad1-2f94190bb22f.jar:?]
        at eu.pb4.styledplayerlist.config.Config.formatPlayerUsername(Config.java:62) ~[styledplayerlist-2.1.0.jar:?]
        at net.minecraft.class_3222.handler$bgc000$changePlayerListName(class_3222.java:7264) ~[intermediary-server.jar:?]
        at net.minecraft.class_3222.method_14206(class_3222.java) ~[intermediary-server.jar:?]
        at net.minecraft.class_2703.<init>(class_2703.java:28) ~[intermediary-server.jar:?]
        at net.minecraft.class_3225.method_14261(class_3225.java:69) ~[intermediary-server.jar:?]
        at net.minecraft.class_3222.method_32748(class_3222.java:1579) ~[intermediary-server.jar:?]
        at net.minecraft.class_3324.method_14570(class_3324.java:165) ~[intermediary-server.jar:?]
        at carpet.patches.EntityPlayerMPFake.createFake(EntityPlayerMPFake.java:65) ~[fabric-carpet-1.17.1-1.4.44+v210714.jar:?]
        at carpet.commands.PlayerCommand.spawn(PlayerCommand.java:289) ~[fabric-carpet-1.17.1-1.4.44+v210714.jar:?]
        at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:263) ~[intermediary-server.jar:?]
        at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:177) ~[intermediary-server.jar:?]
        at net.minecraft.class_2170.method_9249(class_2170.java:251) ~[intermediary-server.jar:?]
        at net.minecraft.class_3244.method_14370(class_3244.java:1222) ~[intermediary-server.jar:?]
        at net.minecraft.class_3244.method_31286(class_3244.java:1206) ~[intermediary-server.jar:?]
        at net.minecraft.class_3244.method_12048(class_3244.java:1189) ~[intermediary-server.jar:?]
        at net.minecraft.class_2797.method_12115(class_2797.java:30) ~[intermediary-server.jar:?]
        at net.minecraft.class_2797.method_11054(class_2797.java:7) ~[intermediary-server.jar:?]
        at net.minecraft.class_2600.method_11072(class_2600.java:21) ~[intermediary-server.jar:?]
        at net.minecraft.class_3738.run(class_3738.java:18) ~[intermediary-server.jar:?]
        at net.minecraft.class_1255.method_18859(class_1255.java:151) ~[intermediary-server.jar:?]
        at net.minecraft.class_4093.method_18859(class_4093.java:23) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:788) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:164) ~[intermediary-server.jar:?]
        at net.minecraft.class_1255.method_16075(class_1255.java:125) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:770) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:764) ~[intermediary-server.jar:?]
        at net.minecraft.class_1255.method_18857(class_1255.java:134) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:749) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.handler$zop000$modifiedRunLoop(MinecraftServer.java:4399) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:676) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270) ~[intermediary-server.jar:?]
        at java.lang.Thread.run(Thread.java:831) [?:?]
commented

I'm almost sure the NPE with fake players was fixed in a recent version only available in their website (they don't update other sites often), will check again.

commented

I'm almost sure the NPE with fake players was fixed in a recent version only available in their website (they don't update other sites often), will check again.

I get latest version from their website

commented

Is this still an issue? I believe I've read from people using LuckPerms with carpet players without issues, but I may be wrong. I'm closing this issue, but if it's still happening feel free to comment and it can be reopened, or make a new issue.