mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 05:55:27 +01:00
fail safe for non existing levelup sound
This commit is contained in:
parent
068b71ad2d
commit
27cf6147a6
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user