[Idea]: Folia support for OpenInv #196
@@ -232,16 +232,24 @@ public interface IOpenInv {
|
|||||||
* when a container is activated with AnyChest.
|
* when a container is activated with AnyChest.
|
||||||
*
|
*
|
||||||
* @return true unless configured otherwise
|
* @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
|
* Check the configuration value for whether or not OpenInv displays a notification to the user
|
||||||
* when a container is activated with SilentChest.
|
* when a container is activated with SilentChest.
|
||||||
*
|
*
|
||||||
* @return true unless configured otherwise
|
* @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
|
* Mark a Player as no longer in use by a Plugin to allow OpenInv to remove it from the cache
|
||||||
|
@@ -334,16 +334,6 @@ public class OpenInv extends JavaPlugin implements IOpenInv {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean notifyAnyChest() {
|
|
||||||
return this.getConfig().getBoolean("notify.any-chest", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean notifySilentChest() {
|
|
||||||
return this.getConfig().getBoolean("notify.silent-chest", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user