I cannot get MOVE_LISTENER to work. #367


Open
  • JJBZ03 created this issue Jan 7, 2024

    I run a semi-anarchy minecraft server and combat tping is something I'm trying to prevent. I set MOVE_LISTENER: true and it isn't making a difference. Players are moving and still teleporting. The commands are dependent on Multiverse plugin. These are my commands:

     

    resourceworld:
    command: /resourceworld
    type: RUN_AS_OPERATOR
    runcmd:
    - $Script$%if%$world==world<or>$world==world_nether
    - /mvtp resource_world
    - /tellraw $player ["",{"text":"You have been teleported to the resource world!","color":"aqua"},{"text":" Be careful, players can see you on","color":"red"},{"text":" http://dynmap.potionssmp.net/","color":"yellow"}]
    - $Script$%if%$world==world_the_end
    - /tellraw $player {"text":"This command does not work in The End!","color":"red"}
    permission-required: false
    register: true
    warmup: 10
    mainworld:
    command: /mainworld
    type: RUN_AS_OPERATOR
    runcmd:
    - $Script$%if%$world==resource_world<or>$world==resource_world_nether
    - /mvtp world
    - /tellraw $player {"text":"You have been teleported back to the main world!","color":"aqua"}
    - $Script$%if%$world==world_the_end
    - /tellraw $player {"text":"This command does not work in The End!","color":"red"}
    permission-required: false
    register: true
    warmup: 10
    spawn:
    command: /spawn
    type: RUN_AS_OPERATOR
    runcmd:
    - /mvtp world
    - /tellraw $player {"text":"You have been teleported to spawn!","color":"aqua"}
    permission-required: false
    register: true
    warmup: 10

  • Ontey posted a comment May 23, 2025

    Move Listener should only work with warmup.

    so using warmup: <seconds to stand still> should fix the problem:

    wiki:

    Warm-ups can be canceled on the move event. Put true on MOVE_LISTENER in the main config. (config.yml)

    (It's disabled (false) by default, once changed, restart the server to make it effective)

     

    if that doesn't work, maybe try setting a playerdata value to the current position of the player at the start with no delay

    and execute other commands with a delay and check if the player's position matches the playerdata

     

    hope you could still use it after like a year xD


To post a comment, please login or register a new account.