Fixed warn not being loaded properly
This commit is contained in:
parent
09edb9af11
commit
44ee404970
@ -11,6 +11,8 @@ import com.redstoner.modules.Module;
|
||||
@Version(major = 1, minor = 0, revision = 1, compatible = 1)
|
||||
public class Warn implements Module
|
||||
{
|
||||
private boolean enabled = false;
|
||||
|
||||
@Command(hook = "warn")
|
||||
public void warn_normal(CommandSender sender)
|
||||
{
|
||||
@ -25,10 +27,22 @@ public class Warn implements Module
|
||||
Utils.broadcast(null, "§2Possible lag incoming! - §9" + name, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEnable()
|
||||
{
|
||||
enabled = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable()
|
||||
{
|
||||
enabled = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean enabled()
|
||||
{
|
||||
return true;
|
||||
return enabled;
|
||||
}
|
||||
|
||||
// @noformat
|
||||
|
Reference in New Issue
Block a user