Initial commit
This commit is contained in:
39
src/com/redstoner/modules/adminchat/Adminchat.java
Normal file
39
src/com/redstoner/modules/adminchat/Adminchat.java
Normal file
@@ -0,0 +1,39 @@
|
||||
package com.redstoner.modules.adminchat;
|
||||
|
||||
import com.redstoner.annotations.AutoRegisterEvents;
|
||||
import com.redstoner.annotations.Version;
|
||||
import com.redstoner.modules.Module;
|
||||
|
||||
/** AdminChat module. Allows staff to chat to other staff using /ac \<message\> as well as a one char prefix or a toggle.
|
||||
*
|
||||
* @author Pepich */
|
||||
@AutoRegisterEvents
|
||||
@Version(major = 1, minor = 0, revision = 0, compatible = 1)
|
||||
public class Adminchat implements Module
|
||||
{
|
||||
private boolean enabled = false;
|
||||
|
||||
@Override
|
||||
public void onEnable()
|
||||
{
|
||||
this.enabled = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable()
|
||||
{
|
||||
this.enabled = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean enabled()
|
||||
{
|
||||
return enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommandString()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user