0

Fixed warn not being loaded properly

This commit is contained in:
Pepich 2017-02-01 20:16:00 +01:00
parent 09edb9af11
commit 44ee404970

View File

@ -11,6 +11,8 @@ import com.redstoner.modules.Module;
@Version(major = 1, minor = 0, revision = 1, compatible = 1) @Version(major = 1, minor = 0, revision = 1, compatible = 1)
public class Warn implements Module public class Warn implements Module
{ {
private boolean enabled = false;
@Command(hook = "warn") @Command(hook = "warn")
public void warn_normal(CommandSender sender) public void warn_normal(CommandSender sender)
{ {
@ -25,10 +27,22 @@ public class Warn implements Module
Utils.broadcast(null, "§2Possible lag incoming! - §9" + name, null); Utils.broadcast(null, "§2Possible lag incoming! - §9" + name, null);
} }
@Override
public void onEnable()
{
enabled = true;
}
@Override
public void onDisable()
{
enabled = false;
}
@Override @Override
public boolean enabled() public boolean enabled()
{ {
return true; return enabled;
} }
// @noformat // @noformat