32 lines
718 B
Java
32 lines
718 B
Java
package com.massivecraft.factions.spigot;
|
|
|
|
public class SpigotFeatures
|
|
{
|
|
// -------------------------------------------- //
|
|
// STATIC FIELDS
|
|
// -------------------------------------------- //
|
|
|
|
// The "active" field is set from inside the EngineSpigot
|
|
|
|
private static boolean active = false;
|
|
public static boolean isActive() { return active; }
|
|
public static void setActive(boolean active) { SpigotFeatures.active = active; }
|
|
|
|
// -------------------------------------------- //
|
|
// ACTIVATE
|
|
// -------------------------------------------- //
|
|
|
|
public static void activate()
|
|
{
|
|
try
|
|
{
|
|
EngineSpigot.get().activate();
|
|
}
|
|
catch (Throwable t)
|
|
{
|
|
// ignored
|
|
}
|
|
}
|
|
|
|
}
|