Get Player using selectors

Discussion in 'Spigot Plugin Development' started by sebstone_5, Jun 14, 2018.

  1. Hello everyone,

    I am writing a plugin at the moment and want to add the possibility to use my tp command with commandblocks. But for this I need to somehow get a Player using the Selectors and the /execute command.
    Since I couldn't finde any useful help yet I am writing this thread.
    If anyone could help me I would be very happy.

  2. What exactly are you trying to achieve when using the command in a commandblock? Teleporting a player to another?
  3. Almost... I saved some places in a MYSQL database. I then allow everyone who has the "Admin" tag to use the /ktp <Destination> command to tp to a presaved place in the databank.
    But I also want to use commandblocks to be able to use /ktp with it to teleport a normal player who enters a "portal" to a presaved location.
  4. JanTuck


    • Agree Agree x 1
    • Useful Useful x 1