Open shasankp000 opened 1 month ago
You know what? I later realised that this is happening because I was playing in offline mode.
However since carpet does a check to see where allowSpawningOfflinePlayers is enabled or not. It still doesn't work with having the setting enabled.
Might wanna look into that maybe?
With reference to issue: #1602
I have encountered the same issue but there is something interesting I noticed.
I myself am working on a minecraft mod which relies on carpet mod's player spawning feature, here is the code in case if someone wishes to inspect:
https://github.com/shasankp000/AI-Player/blob/master/src/main/java/net/shasankp000/Commands/spawnFakePlayer.java
And whenever I tested it in intelij's environment, it always works.
However when I test the same in the actual game, nothing happens.
Simply, nothing happens when I execute
/player xyz spawn
or my own command/spawnBot
which is basically calling the same method/player spawn
uses.I also enabled the carpet rules in my carpet.conf file in my world and the global carpet configurations as well
allowListingFakePlayers true superSecretSetting true commandPlayer true commandScript true perfPermissionLevel 4 allowSpawningOfflinePlayers true commandSpawn true
However, interestingly when I try to execute the same command (carpet's inbuilt command or my own command) using a command block, the game crashes.And I think I found what's been causing the issue
` [15:41:46] [Server thread/ERROR]: This crash report has been saved to: C:\Users\shasa\AppData\Roaming.tlauncher\legacy\Minecraft\game\crash-reports\crash-2024-07-23_15.41.46-server.txt
This is due to a missing method
findProfilesByNames
incom.mojang.authlib.GameProfileRepository
.However, on an even thorough examination, the method does exist.
This is what I could find so far.