Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if victim is rabbit isn't working #4040

Closed
iOshawott opened this issue May 28, 2021 · 4 comments
Closed

if victim is rabbit isn't working #4040

iOshawott opened this issue May 28, 2021 · 4 comments
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.

Comments

@iOshawott
Copy link

Description

When I define rabbit in "if" - it's not being recognized

Steps to Reproduce

on death:
	if victim is rabbit:
		send "yeah, it is rabbit" to attacker
on death of rabbit:
	send "yeah, it is rabbit 2" to attacker
on death:
	if victim is cow:
		send "yeah, it is cow" to attacker
on death of cow:
	send "yeah, it is cow 2" to attacker

Expected Behavior

"if victim is rabbit" should be working as it works for cow, there's no error but it doesn't work.
That's weird that "on death of rabbit" works, but checking for victim needs to clarify which rabbit we want.
for now, I need to use "if victim is gold rabbit or salt and pepper rabbit or white rabbit or black and white rabbit or brown rabbit", because "any rabbit" isn't working too.

Server Information

  • Server version/platform: paper-742
  • Skript version: 2.6-alpha1
@XfedeX
Copy link

XfedeX commented Jun 2, 2021

Try using "if victim is a rabbit".

@TPGamesNL TPGamesNL added the waiting for reply The report needs a response from the reporter to determine course of action. label Jun 3, 2021
@iOshawott
Copy link
Author

it's still not working while I added "a"

@FranKusmiruk
Copy link
Member

FranKusmiruk commented Jun 9, 2021

Can someone else confirm this?

@TPGamesNL
Copy link
Member

I can confirm this. Using the specific rabbit, e.g. brown rabbit, does work.

@TPGamesNL TPGamesNL added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: low Issues that are not harmful to the experience but are related to useful changes or additions. and removed waiting for reply The report needs a response from the reporter to determine course of action. labels Jun 12, 2021
@TPGamesNL TPGamesNL added PR available Issues which have a yet-to-be merged PR resolving it completed The issue has been fully resolved and the change will be in the next Skript update. and removed PR available Issues which have a yet-to-be merged PR resolving it labels Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.
Projects
None yet
Development

No branches or pull requests

5 participants