03-19-2016, 08:18 PM
Your for-loops look weird. Using the same variable name for inner loop as for the outer loop is very confusing. I have to say I am quite unable to actually follow this piece of code.
get every sign in the world
|
03-19-2016, 08:18 PM
Your for-loops look weird. Using the same variable name for inner loop as for the outer loop is very confusing. I have to say I am quite unable to actually follow this piece of code.
the name variable had actually no use it was just something I forgot to remove after testing
I've updated it a little bit cleanup maybe better understandable now? xD
03-21-2016, 10:21 PM
Why is there a list of playernames? Is it possible for two players to "claim" the same block?
I'd personally have used a different index ordering, specifying the world name first, but that's a matter of taste. You should definitely not use a player name, though - accounts can be renamed nowadays, you should use the UUID instead - that is guaranteed to stay the same.
03-21-2016, 11:00 PM
oh didn't knew you can change your name ok I will use UUID instead
yes multiple players can claim the same block you can define friends Next problem I have, I want to prevent that Players that don't have permission can't open the gate. no matter what I do the gate is a little time open on the client / they can go through I think that's known. However I tried to teleport the Player away but I noticed Teleports aren't working over short length? on another Client I see that the Player is teleported but in a second he is back at the same position. So can it somehow work or do I need another idea? or is it possible to create a knockback kinda like explosions do?
03-21-2016, 11:18 PM
I got it working with freeze and unfreeze but im not sure if it's safe because im calling both in the same function / in 1 tick. maybe if the player has lag he could glitch through?
|
« Next Oldest | Next Newest »
|