Skript: Player name cannot be compared with owner

Created on 29 Aug 2020  路  4Comments  路  Source: SkriptLang/Skript

Description

Player name in previously accepted skript is not recognized. The skript ran without error through Skript 2.5-beta2.

Steps to Reproduce

  • Update from Skript 2.5-beta2 to 2.5-beta3.
  • Start server.
  • Obverse console/log error.

Note that the real player name has been replaced below by "playerName".

Errors / Screenshots

[15:50:10] [Server thread/INFO]: [Skript] Loading Skript v2.5-beta3
[15:50:27] [Server thread/INFO]: [Skript] Enabling Skript v2.5-beta3
...
[15:51:35] [Server thread/INFO]: [Skript] Loading variables...
[15:51:35] [Server thread/INFO]: [Skript] Loaded 7 variables in 0.0 seconds
...
[15:51:40] [Server thread/ERROR]: [Skript] Can't compare an inventory holder with a text (save-my-pets.sk, line 38: owner of the victim is "playerName"')
[15:51:40] [Server thread/ERROR]: [Skript] Can't compare an inventory holder with a text (save-my-pets.sk, line 54: owner of the victim is "playerName"')

Server Information

  • Server version/platform: Spigot 1.16.2 (Jenkins 2897)
  • Skript version: 2.5-beta3

Additional Context

The skript

on damage of a cat:
        owner of the victim is "playerName"
        cancel event
        send "Don't hurt that cat!" to the attacker
        attacker is not "playerName"
...
bug completed medium

All 4 comments

Hot diggity, you fix one bug and create another haha.

Anyways the inventory (holder|owner) expression and the (owner|tamer) expression are clashing.
Until I can fix this, use tamer instead.

tamer works fine. Thanks.

Per documentation:

The tamer of an entity. Can only be used in entity tame events. 

Nevertheless, it appears to work fine in the quoted comparison, which is not an entity tame event. So perhaps the documentation needs an update.

2 different expressions:
Screen Shot 2020-08-28 at 5 17 36 PM
Screen Shot 2020-08-28 at 5 17 57 PM

This was simply a clash with:
Screen Shot 2020-08-28 at 4 52 45 PM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

TheClassic36 picture TheClassic36  路  3Comments

wohahobg picture wohahobg  路  3Comments

cyanide43 picture cyanide43  路  4Comments

GiraffeCubed picture GiraffeCubed  路  3Comments