- if (currentSone != null) {
- options.put("ShowNotification/NewSones", currentSone.getOptions().getBooleanOption("ShowNotification/NewSones").get());
- options.put("ShowNotification/NewPosts", currentSone.getOptions().getBooleanOption("ShowNotification/NewPosts").get());
- options.put("ShowNotification/NewReplies", currentSone.getOptions().getBooleanOption("ShowNotification/NewReplies").get());
+ if (currentSone.isPresent()) {
+ options.put("ShowNotification/NewSones", currentSone.get().getOptions().isShowNewSoneNotifications());
+ options.put("ShowNotification/NewPosts", currentSone.get().getOptions().isShowNewPostNotifications());
+ options.put("ShowNotification/NewReplies", currentSone.get().getOptions().isShowNewReplyNotifications());