-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
PlayerExpCooldown #7076
PlayerExpCooldown #7076
Conversation
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
and tests please :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would love to see tests for the actual changing of the cooldown as well. Would help spot that pesky +
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
...t/java/org/skriptlang/skript/test/tests/syntaxes/events/EvtExperienceCooldownChangeTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still would love to see tests for the expression!
src/main/java/ch/njol/skript/expressions/ExprExperienceChangeReason.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceChangeReason.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceChangeReason.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
How do you propose I do the tests for the expression? |
Something similar to this, https://github.com/Efnilite/Skript/blob/38d855925ad17b20923080155bc42d1704cad56a/src/test/skript/junit/-EvtPiglinBarter.sk, you just try all the change modes and see if it changed correctly |
...t/java/org/skriptlang/skript/test/tests/syntaxes/events/EvtExperienceCooldownChangeTest.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
So as expected, using the expressions on an EasyMock Player does not work and throws stack traces. Which I knew would happen from the get go and is why I didn't add it. |
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldownChangeReason.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldownChangeReason.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just two little things!
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldown.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprExperienceCooldownChangeReason.java
Outdated
Show resolved
Hide resolved
09b2e15
to
612796a
Compare
…ionism/SkriptTest into dev/PlayerExpCooldown
Description
This PR aims to add
PlayerExpCooldownChangeEvent
and correlating expression.Target Minecraft Versions: any
Requirements: none
Related Issues: #5802