Remove Maven
This commit is contained in:
31
src/com/massivecraft/factions/spigot/SpigotFeatures.java
Normal file
31
src/com/massivecraft/factions/spigot/SpigotFeatures.java
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user