mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +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
|
@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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user