1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 15:03:36 +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 @Deprecated
public String getSoundName() { public String getSoundName() {
return this.soundLevelupSound.name(); return this.soundLevelupSound != null ? this.soundLevelupSound.name() : "";
} }
public Sound getSound() { public Sound getSound() {
@ -117,7 +117,7 @@ public final class JobsLevelUpEvent extends Event implements Cancellable {
@Deprecated @Deprecated
public String getTitleChangeSoundName() { public String getTitleChangeSoundName() {
return this.soundTitleChangeSound.name(); return this.soundTitleChangeSound != null ? this.soundTitleChangeSound.name() : "";
} }
public Sound getTitleChangeSound() { public Sound getTitleChangeSound() {