1. NOTE: These forums are no longer used. Please use Discord instead.

Use Variables in different plugin commands

Discussion in 'CraftBook' started by cluckclock, Oct 19, 2017.

  1. cluckclock

    cluckclock New Member

    Hi, I'm trying to use variables in a /tp command. On the craftbook wiki, it states:
    "Variables can also be configured to work in commands from other plugins, and can be configured to be enabled separately in both the Console and Players. ... If this syntax breaks a command of another plugin, it is possible to cancel out the variable syntax by adding \ before each % sign of the variable."

    However, if I were to write:
    /tp @p \%x\% 0 0

    I would get an error saying that \%x\% is not an integer.

    Do I need to enable a permission that I haven't checked(I went through and set true to everything under Variables in mechanisms.yml)? Thanks for any solutions.
  2. me4502

    me4502 Moderator Developer

    You should be using /tp @p %x% 0 0, not \%x\%
    cluckclock likes this.
  3. cluckclock

    cluckclock New Member

    Thank you so much! I had tried that, but for some reason it wasn't working.. I must have used a silly syntax error over and over. Thank you for the response!