{Player} Variable

Discussion in 'Plugin Development' started by acelv, Dec 24, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    acelv

    Hi , i have one problem, i dont know how to code, variable, i want it because , i need in config, set message - {Player} has random teleported!
    My code is- https://pastebin.com/r1mi0XKm
    p.s Sorry for my bad English :(
     
  2. Offline

    timtower Moderator Moderator

    @acelv Remove the logger
    The code is good, you just need to make it so that gets used instead of line 44
     
  3. Offline

    acelv

  4. Offline

    timtower Moderator Moderator

    @acelv The variable code is still after the if statement, should be within the statement block
     
  5. Offline

    acelv

  6. Offline

    timtower Moderator Moderator

    @acelv That is due to the return false
     
  7. Offline

    acelv

    Ohh.. thanks u so much , solved :*

    @timtower Ohh have another problem, i want do the same in perm deny message- {Player} variable and color ! But when i duplicate the code, his give me error ! screen - http://prntscr.com/hsg31t
    pastebin- https://pastebin.com/PwZthJWx

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 26, 2017
Thread Status:
Not open for further replies.

Share This Page