Redirect Player
#2
Hello and welcome to the forum Smile

You'll probably want to send a player with BungeeCord to another server. Zee1234 is working on that: https://forum.cuberite.org/showthread.php?tid=2168

You can't "get" a different player due to multithreading issues. Instead we use callbacks:
function OnPlayerRightClick(a_Player, All other parameters)
   local TargetOtherPlayer = "TargetPlayer"
   cRoot:Get():FindAndDoWithPlayer(TargetOtherPlayer, function(a_Player)
         -- Do stuff with the other player.
      end
   )
end
Reply
Thanks given by: Nether Mc


Messages In This Thread
Redirect Player - by Nether Mc - 10-30-2015, 04:37 PM
RE: Redirect Player - by NiLSPACE - 10-30-2015, 09:19 PM
RE: Redirect Player - by Nether Mc - 11-03-2015, 08:38 PM
RE: Redirect Player - by Zee1234 - 11-02-2015, 09:06 AM
RE: Redirect Player - by xoft - 11-04-2015, 12:02 AM
RE: Redirect Player - by Zee1234 - 11-04-2015, 09:01 AM



Users browsing this thread: 2 Guest(s)