1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

fail safe for non existing levelup sound

This commit is contained in:
Zrips 2016-10-01 13:28:34 +03:00
parent 068b71ad2d
commit 27cf6147a6

View File

@ -88,7 +88,7 @@ public final class JobsLevelUpEvent extends Event implements Cancellable {
@Deprecated
public String getSoundName() {
return this.soundLevelupSound.name();
return this.soundLevelupSound != null ? this.soundLevelupSound.name() : "";
}
public Sound getSound() {
@ -117,7 +117,7 @@ public final class JobsLevelUpEvent extends Event implements Cancellable {
@Deprecated
public String getTitleChangeSoundName() {
return this.soundTitleChangeSound.name();
return this.soundTitleChangeSound != null ? this.soundTitleChangeSound.name() : "";
}
public Sound getTitleChangeSound() {