Can you PLEASE update this and add commands and perhaps make it compatible with world eidt/guard i really want a plugin like this on my server but i cant find ANYTHING the same as this describes please update as soon as you can ;_;
Just a quick note, I improved upon your plugin for personal use by allowing any block to be selected and then stored as a fake block, meaning it is not just a cuboid. It worked well, and might be the way forward for this plugin :)
Sadly one block isn't ideal for me, so I'll stick to my version. players can stand 4 blocks away from the wall and right block all the fake blocks to make them update and vanish. they wouldn't get through the wall with your method, but they would be able to see through it, and them getting through is not my priority, I world guarded the wall to prevent that anyway. Also depending on how you did it, it might cause players who are up against the wall to end of stream if they move too much, I found that on my test server when I tried something similar, you have to limit how often the blocks are sent to the player or they will get a massive fps drop near the wall and the server will also start to lag.
yea the scheduler change s a pain... I would be interested to see how you handled players removing the wall blocks though. my way is a little bit excessive. I'm resending the blocks on player move event if they are within 10 blocks of the wall, but only once a second, having them resent 20 times a second was horrific. I tried just to use the player interact, but it doesn't detect them right clicking the wall, I assume because it doesn't really exist. also you may want to add a world check to the plugin, so have world: in the config and check the players world is equal to it, I found without adding that the blocks appeared in that place in every world the player went to. as I said, I would be very interested to see how a more experienced coder dealt with all these problems, so I'll take a look at your next release when its up :)
I don't think _Husky_ has a lot of time to work on this plugin. I wouldn't get your hopes up about getting new content. I have used this plugin as a base to code my own improved version for my server which has a refreshing wall, so no more players removing it, as well as adding a selecting method myself hooking it into world edit. its all possible, but takes A LONG time. (took me a week to finish all my additions, and fix the horrible bugs I introduced) but yea, at most I can see the /fb commands being finished (currently they are not implemented or fully functional). Without seeing how this was done though, I doubt I would ever be able to make a plugin remotely like this! ^.^ kudos to _Husky_
You should add it so that when you do /fb or /fakeblock it gives you a list of commands because there is no way to know about /fb set or anything else that I might not know about. Also under commands right up on the original post add the commands please :)
Also I'd love to help test out in the future, if you know what I mean, like I've done for the past week or so with the bugs and the large one I'm getting now.
Found the problem, but not the fix. I was using the newest development build and in build 2725, which introduced these changes, breaking the plugins on join event:
BUKKIT-3950: Using an invalid plugin for scheduler can crash server
BUKKIT-3951: Disabled plugins can register tasks in the scheduler
EDIT: also blocks are still not reappearing after being interacted with
with the latest version:
[SEVERE] Could not pass event PlayerJoinEvent to FakeBlock v1.0
at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.validate
at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.runTaskLater
at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.runTaskTimer
at org.bukkit.scheduler.BukkitRunnable.runTaskLater
at code.husky.FakeBlockListener.playerJoin(FakeBlockListener.java:97)
I had a look at the git hub you made for this project just to see if there was anything obvious, but I couldn't tell what the problem is. (I'm fairly new to java and bukkit plugin development, so I have not learned much yet)
Hope you know how to fix this, because I'm stuck :)
@ruspecial
@Pfctink
@BlazeMF
Please refer to the latest version!
How do I put the coords in the config? There's nothing that says "coordinates: x,y,z"
Found out what it is. You have the name of the wall, you can make multiple. At the start, you only have one in the config, which is Default.
So here's how it goes.
Default: data: x,y,z,worldname,x1,y1,z1,blockid
xyz are the first block you want to create the wall on using coordinates.
x1y1z1 are the second block.
worldname will probably be "world", unless you named your world differently.
blockid is the block you want other players to see.
So, let's say we have coords are 200,300,100 and we want a wall and have diamond blocks to be the wall.
You would have 200,300,100,world,200,301,100,57
So it would then be
Default: data: 200,300,100,world,200,301,100,57 walls: list: - Default
Can you PLEASE update this and add commands and perhaps make it compatible with world eidt/guard i really want a plugin like this on my server but i cant find ANYTHING the same as this describes please update as soon as you can ;_;
Please update the plugin!
@Dommbringer
If you would like to commit them to this repo, that'd be great! :D
https://github.com/Husky--/FakeBlock
@C0nsoleMC
https://github.com/Husky--/FakeBlock
Just a quick note, I improved upon your plugin for personal use by allowing any block to be selected and then stored as a fake block, meaning it is not just a cuboid. It worked well, and might be the way forward for this plugin :)
Can I please see the source? I am very interested in it.
So how do you actually make the fake wall?
please update so you can set multiple walls with seperate permissions and you can uuse worldedit/commands
@_Husky_
Sadly one block isn't ideal for me, so I'll stick to my version. players can stand 4 blocks away from the wall and right block all the fake blocks to make them update and vanish. they wouldn't get through the wall with your method, but they would be able to see through it, and them getting through is not my priority, I world guarded the wall to prevent that anyway. Also depending on how you did it, it might cause players who are up against the wall to end of stream if they move too much, I found that on my test server when I tried something similar, you have to limit how often the blocks are sent to the player or they will get a massive fps drop near the wall and the server will also start to lag.
I have added a check so if they are 1 block away from the fakewall it resends onPlayerMove.
That stops them from breaking it in any way, I haven't tested this, but I may add a safelock onto it, need be.
I will fix the world problem now, wont be hard. ;)
EDIT - Done, https://github.com/Husky--/FakeBlock/tree/master/src/code/husky
@_Husky_
yea the scheduler change s a pain... I would be interested to see how you handled players removing the wall blocks though. my way is a little bit excessive. I'm resending the blocks on player move event if they are within 10 blocks of the wall, but only once a second, having them resent 20 times a second was horrific. I tried just to use the player interact, but it doesn't detect them right clicking the wall, I assume because it doesn't really exist. also you may want to add a world check to the plugin, so have world: in the config and check the players world is equal to it, I found without adding that the blocks appeared in that place in every world the player went to. as I said, I would be very interested to see how a more experienced coder dealt with all these problems, so I'll take a look at your next release when its up :)
@Dommbringer
I have actually done all this, I do have time, It's just I don't check BukkitDev often, and don't get any alerts.
I plan on releasing once Bukkit's scheduler doesn't break when I'm calling it. :_:
@C0nsoleMC
I don't think _Husky_ has a lot of time to work on this plugin. I wouldn't get your hopes up about getting new content. I have used this plugin as a base to code my own improved version for my server which has a refreshing wall, so no more players removing it, as well as adding a selecting method myself hooking it into world edit. its all possible, but takes A LONG time. (took me a week to finish all my additions, and fix the horrible bugs I introduced) but yea, at most I can see the /fb commands being finished (currently they are not implemented or fully functional). Without seeing how this was done though, I doubt I would ever be able to make a plugin remotely like this! ^.^ kudos to _Husky_
You should add it so that when you do /fb or /fakeblock it gives you a list of commands because there is no way to know about /fb set or anything else that I might not know about. Also under commands right up on the original post add the commands please :)
Also I'd love to help test out in the future, if you know what I mean, like I've done for the past week or so with the bugs and the large one I'm getting now.
@Dommbringer
Found the problem, but not the fix. I was using the newest development build and in build 2725, which introduced these changes, breaking the plugins on join event: BUKKIT-3950: Using an invalid plugin for scheduler can crash server BUKKIT-3951: Disabled plugins can register tasks in the scheduler EDIT: also blocks are still not reappearing after being interacted with
with the latest version: [SEVERE] Could not pass event PlayerJoinEvent to FakeBlock v1.0 at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.validate at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.runTaskLater at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.runTaskTimer at org.bukkit.scheduler.BukkitRunnable.runTaskLater at code.husky.FakeBlockListener.playerJoin(FakeBlockListener.java:97)
I had a look at the git hub you made for this project just to see if there was anything obvious, but I couldn't tell what the problem is. (I'm fairly new to java and bukkit plugin development, so I have not learned much yet) Hope you know how to fix this, because I'm stuck :)
@_Husky_
thank you very much, my temporary fixes were very inefficient :P
Released 2 new builds out today, fixes for players seeing the FakeWall no matter what, and fixed them being able to get rid of it.
Will fix