Skip to content

Totem protect from void teleport does not cancel velocity. #10399

Description

@Frerduro

Description of Issue

After #10397 was fixed I have noticed that when you get teleported to safety the velocity you had from falling into the void does not get cancelled and easily causes you to die to fall damage.

Version Information

[18:24:15 INFO]: --------------------------------------------------
[18:24:15 INFO]: CMI: 9.8.9.7 SqLite
[18:24:15 INFO]: CMILib: 1.5.9.9 
[18:24:15 INFO]: Server: Purpur(2618) 26.2.build.2618-stable+
[18:24:15 INFO]: CMI economy: Disabled CMI Chat: Disabled 
[18:24:15 INFO]: Modules -> 70 enabled 1 disabled: votifier
[18:24:15 INFO]: --------------------------------------------------

Errors

None

Relevant Config Sections

Totem:
  # When this set to true, on players death totem will be used even if he is not holding it in hand
  RemoveFromInventory: false
  # Require permission node for totem to be taken from inventory
  # RemoveFromInventory should be set to true and if this enabled player will need cmi.totem.frominventory
  RequirePermission: false
  Cooldown:
    # When this set to true player can use totem only every X second's
    Use: false
    Time: 600
  Warmup:
    # When this set to true player can use totem to have X amount of second's, during which he can die and be resurected
    # Totem will be consumed durring activation and wont be returned even if resurection is not used during warmup time
    Use: false
    Time: 10
  # If player falls into void while having totem, he will be teleported to respawn location and totem gets consumed
  ProtectFromVoid: true
  Effects:
    # Time in seconds effect needs to be applied to the player. Set it to 0 if you want to disable it
    Regeneration: 45
    FireResistance: 40
    Absorbtion: 5
  # Worlds where totem handling will be left for server default behavior
  BlackListedWorlds:
  - TestWorld
  - DeathWorld
  # Worlds where totem usage is disabled entirely
  FullDisableInWorlds:
  - YouDied

Relevant Plugins

[18:24:15 INFO]: ℹ Server Plugins (2): [18:24:15 INFO]: Paper Plugins (0): [18:24:15 INFO]: Bukkit Plugins (2): [18:24:15 INFO]: - CMI, CMILib

Agreements

  • My server is supported by CMI.
  • My version of CMI at the time of this report is up to date.
  • I have searched the github and asked around before making this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportReports of bugs/inconsistencies

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions