PZUAKVDSSARBXQRXOKMDMJUP7HYCV7PVQBY43ANA3H4YX4GUJY3QC
package ua.com.minersstudios.whomine.item;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
public final class Plugin extends JavaPlugin
{
/**
* Ensure that required plugins are installed on a server, if not - disable itself.
*/
@Override
public void onEnable()
{
ArrayList<String> expected_plugins_names = new ArrayList<>(Arrays.asList(
"msCore"
));
for (String p : expected_plugins_names)
{
if (getServer().getPluginManager().getPlugin(p) == null)
{
getLogger().log(Level.SEVERE, "Required dependencies unsatisfied.");
getServer().getPluginManager().disablePlugin(this);
break;
}
}
}
}
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
public final class MSItem extends JavaPlugin
{
/**
* Ensure that required plugins are installed on a server, if not - disable itself.
*/
@Override
public void onEnable()
{
ArrayList<String> expected_plugins_names = new ArrayList<>(Arrays.asList(
"msCore"
));
for (String p : expected_plugins_names)
{
if (getServer().getPluginManager().getPlugin(p) == null)
{
getLogger().log(Level.SEVERE, "Required dependencies unsatisfied.");
getServer().getPluginManager().disablePlugin(this);
break;
}
}
}
}
package ua.com.minersstudios.whomine.decor;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
public final class Plugin extends JavaPlugin
{
/**
* Ensure that required plugins are installed on a server, if not - disable itself.
*/
@Override
public void onEnable()
{
ArrayList<String> expected_plugins_names = new ArrayList<>(Arrays.asList(
"msCore", "CoreProtect"
));
for (String p : expected_plugins_names)
{
if (getServer().getPluginManager().getPlugin(p) == null)
{
getLogger().log(Level.SEVERE, "Required dependencies unsatisfied.");
getServer().getPluginManager().disablePlugin(this);
break;
}
}
}
}
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
public final class MSDecor extends JavaPlugin
{
/**
* Ensure that required plugins are installed on a server, if not - disable itself.
*/
@Override
public void onEnable()
{
ArrayList<String> expected_plugins_names = new ArrayList<>(Arrays.asList(
"msCore", "CoreProtect"
));
for (String p : expected_plugins_names)
{
if (getServer().getPluginManager().getPlugin(p) == null)
{
getLogger().log(Level.SEVERE, "Required dependencies unsatisfied.");
getServer().getPluginManager().disablePlugin(this);
break;
}
}
}
}
package ua.com.minersstudios.whomine.core;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
public final class Plugin extends JavaPlugin
{
/**
* Ensure that required plugins are installed on a server, if not - disable itself.
*/
@Override
public void onEnable()
{
ArrayList<String> expected_plugins_names = new ArrayList<>(Arrays.asList(
"msDecor", "msUtil", "msBlock", "msItem"
));
for (String p : expected_plugins_names)
{
if (getServer().getPluginManager().getPlugin(p) == null)
{
getLogger().log(Level.SEVERE, "Required dependencies unsatisfied.");
getServer().getPluginManager().disablePlugin(this);
break;
}
}
}
}
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
public final class MSCore extends JavaPlugin
{
/**
* Ensure that required plugins are installed on a server, if not - disable itself.
*/
@Override
public void onEnable()
{
ArrayList<String> expected_plugins_names = new ArrayList<>(Arrays.asList(
"msDecor", "msUtil", "msBlock", "msItem"
));
for (String p : expected_plugins_names)
{
if (getServer().getPluginManager().getPlugin(p) == null)
{
getLogger().log(Level.SEVERE, "Required dependencies unsatisfied.");
getServer().getPluginManager().disablePlugin(this);
break;
}
}
}
}
package ua.com.minersstudios.whomine.block;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
public final class Plugin extends JavaPlugin
{
/**
* Ensure that required plugins are installed on a server, if not - disable itself.
*/
@Override
public void onEnable()
{
ArrayList<String> expected_plugins_names = new ArrayList<>(Arrays.asList(
"msCore", "ProtocolLib", "CoreProtect"
));
for (String p : expected_plugins_names)
{
if (getServer().getPluginManager().getPlugin(p) == null)
{
getLogger().log(Level.SEVERE, "Required dependencies unsatisfied.");
getServer().getPluginManager().disablePlugin(this);
break;
}
}
}
}
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.logging.Level;
public final class MSBlock extends JavaPlugin
{
/**
* Ensure that required plugins are installed on a server, if not - disable itself.
*/
@Override
public void onEnable()
{
ArrayList<String> expected_plugins_names = new ArrayList<>(Arrays.asList(
"msCore", "ProtocolLib", "CoreProtect"
));
for (String p : expected_plugins_names)
{
if (getServer().getPluginManager().getPlugin(p) == null)
{
getLogger().log(Level.SEVERE, "Required dependencies unsatisfied.");
getServer().getPluginManager().disablePlugin(this);
break;
}
}
}
}