Closed taooceros closed 4 years ago
can you put these errors in a code case like;
and probably your fakes.yml file has a wrong format, can you put the file too.
I think I don't have a "fakes.yml" in the plugins folder.
file-version: '1.0'
plugin-prefix: '&6[&eFakePlayer&6]'
plugin-language: en
check-for-update: true
tab-name: '&e[Player] &a%player_name%'
{
"fakes": {
"Type": {
}
},
"file-version": "1.0"
}
file-version: '1.0'
fake-players:
title: '&eFake Players'
fake-player:
row: 0
column: 0
fake-player:
material: PLAYER_HEAD
amount: 1
display-name: '&a%player_name%'
lore:
- ''
- '&7Right Click to delete this fake player.'
- '&7Left Click to teleport this fake player.'
- '&7Middle Click to toggle visible this fake player.'
flags: []
add:
row: 4
column: 4
add:
material: APPLE
amount: 1
display-name: '&aAdd Fake Player'
lore:
- ''
- '&7Click and add fake player to your location.'
flags: []
next:
row: 5
column: 5
next:
material: ARROW
amount: 1
display-name: '&aNext'
lore:
- ''
- '&7Click and see the next page.'
flags: []
previous:
row: 5
column: 3
previous:
material: ARROW
amount: 1
display-name: '&aPrevious'
lore:
- ''
- '&7Click and see the previous page.'
flags: []
i mean fakes.json actually nvm.
{
"fakes": {
},
"file-version": "1.0"
}
remove the type section like that.
ok, thanks. Is it the list of all the fake players that has been added in the game? Is "Type" the prefix of a fake player when I want to add it? when I add a new fake player, it ask me to write something after "Type..."
yes its a list for added fakes. actually, the design is like that
{
"fakes": {
"test-fake": "location-string",
"other-fake": "other-location-string"
},
"file-version": "1.0"
}
also you can use /fakeplayer menu command to create fakes
the anvil case is asking you for name of the fake player
btw, can you try 1.5 release, here https://github.com/spigotplugins/fakeplayer/releases i need feedback for is it working well or not.
I will
I think there is a small mistake, that when I use the 1.5 releases, it says New version found (v1.3) lol.
There is a bug when the server is enabling the plugin when Fakes.json contains a player.
[FakePlayer] Plugin FakePlayer v1.5 generated an exception while executing task 7
java.lang.IllegalStateException: Asynchronous entity add!
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15) ~[patched_1.15.2.jar:git-Paper-209]
at net.minecraft.server.v1_15_R1.WorldServer.addEntity0(WorldServer.java:1222) ~[patched_1.15.2.jar:git-Paper-209]
at net.minecraft.server.v1_15_R1.WorldServer.addEntity(WorldServer.java:1153) ~[patched_1.15.2.jar:git-Paper-209]
at io.github.portlek.fakeplayer.nms.v1_15_R1.Util.addEntityToWorld(Util.java:38) ~[?:?]
at io.github.portlek.fakeplayer.nms.v1_15_R1.NPC.<init>(NPC.java:38) ~[?:?]
at io.github.portlek.fakeplayer.nms.v1_15_R1.FakeCreated1_15_R1.create(FakeCreated1_15_R1.java:16) ~[?:?]
at io.github.portlek.fakeplayer.handle.FakeBasic.lambda$spawn$0(FakeBasic.java:76) ~[?:?]
at java.util.Optional.ifPresent(Optional.java:183) ~[?:?]
at io.github.portlek.fakeplayer.handle.FakeBasic.spawn(FakeBasic.java:74) ~[?:?]
at io.github.portlek.fakeplayer.file.FakesFile.lambda$null$1(FakesFile.java:50) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[?:?]
at io.github.portlek.fakeplayer.file.FakesFile.lambda$onLoad$2(FakesFile.java:49) ~[?:?]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.2.jar:git-Paper-209]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.15.2.jar:git-Paper-209]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.15.2.jar:git-Paper-209]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
emmm If I don't simply add the name of the fake player after the "fakeplayer name..." it will receive a bug, making me unable to join the server. I think it is possible to add a limit.
you will remove the fake player name... cases and put your fake player name
ok fixed, try the new release
Jar does not contain plugin.yml.......
Could not load 'plugins\FakePlayer-1.5.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:161) ~[patched_1.15.2.jar:git-Paper-209]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:148) ~[patched_1.15.2.jar:git-Paper-209]
at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:358) ~[patched_1.15.2.jar:git-Paper-209]
at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:234) ~[patched_1.15.2.jar:git-Paper-209]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:896) ~[patched_1.15.2.jar:git-Paper-209]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
... 6 more
Fixed it, you have enter an extra enter in the description part in plugin.yml😂😂😂😂
xd
its working on me, i couldn't find the problem on the file .-.
Here, before the "join.', there is an extra enter.
its not like on me idk why yaml configuration puts extra enter
So Weird lol😮
I think there is an issue for reloading plugin after an fake player has been created. When I deletes the folder storing the config, this won't appear.
Server: Paper-209