mirror of
https://github.com/essentials/Essentials.git
synced 2025-10-03 17:41:57 +02:00
Allow EssentialsProtect to go into emergency mode, if Essentials core is not present at all.
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
package com.earth2me.essentials.protect;
|
||||
|
||||
import com.earth2me.essentials.IEssentials;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.protect.data.IProtectedBlock;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
|
||||
public interface IProtect
|
||||
public interface IProtect extends Plugin
|
||||
{
|
||||
void alert(final User user, final String item, final String type);
|
||||
|
||||
boolean checkProtectionItems(final ProtectConfig list, final int id);
|
||||
|
||||
boolean getSettingBool(final ProtectConfig protectConfig);
|
||||
@@ -17,5 +16,13 @@ public interface IProtect
|
||||
|
||||
IProtectedBlock getStorage();
|
||||
|
||||
IEssentials getEssentials();
|
||||
void setStorage(IProtectedBlock pb);
|
||||
|
||||
EssentialsConnect getEssentialsConnect();
|
||||
|
||||
Map<ProtectConfig, Boolean> getSettingsBoolean();
|
||||
|
||||
Map<ProtectConfig, String> getSettingsString();
|
||||
|
||||
Map<ProtectConfig, List<Integer>> getSettingsList();
|
||||
}
|
||||
|
Reference in New Issue
Block a user