Deprecate API for removed notification configuration

This commit is contained in:
Jikoo
2021-04-05 19:12:45 -04:00
parent 6c4818dfd9
commit e3acb5384a
2 changed files with 10 additions and 12 deletions

View File

@@ -232,16 +232,24 @@ public interface IOpenInv {
* when a container is activated with AnyChest.
*
* @return true unless configured otherwise
* @deprecated OpenInv uses action bar chat for notifications. Whether or not they show is based on language settings.
*/
boolean notifyAnyChest();
@Deprecated
default boolean notifyAnyChest() {
return true;
}
/**
* Check the configuration value for whether or not OpenInv displays a notification to the user
* when a container is activated with SilentChest.
*
* @return true unless configured otherwise
* @deprecated OpenInv uses action bar chat for notifications. Whether or not they show is based on language settings.
*/
boolean notifySilentChest();
@Deprecated
default boolean notifySilentChest() {
return true;
}
/**
* Mark a Player as no longer in use by a Plugin to allow OpenInv to remove it from the cache