11-07-2015, 09:16 PM
Hi!
I have got a minecraft server, and I wanted to disallow certain people from going to a certain (VIP only) area. I made a mockup of the code so anyone is disallowed to move there, just to try it out.
I am trying to disallow movement to -370, 219, 131
I have called the hook OnplayerMoving.
Can anyone help me, I am a total newb at lua and wanted to try making a plugin.
PS I am writing on top of a plugins called Jobs for now, as it havge things related to what I want to do. (Although I think it needs updating).
I have got a minecraft server, and I wanted to disallow certain people from going to a certain (VIP only) area. I made a mockup of the code so anyone is disallowed to move there, just to try it out.
I am trying to disallow movement to -370, 219, 131
function OnPlayerMoving(Player, OldPosition, NewPosition) World = Player:GetWorld() if (NewPosition == -370, 219, 131) then return false end
I have called the hook OnplayerMoving.
Can anyone help me, I am a total newb at lua and wanted to try making a plugin.
PS I am writing on top of a plugins called Jobs for now, as it havge things related to what I want to do. (Although I think it needs updating).