Project cleanup pre merge.
This commit is contained in:
@@ -17,47 +17,45 @@ import engine.objects.PlayerCharacter;
|
||||
import engine.powers.EffectsBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Eighty
|
||||
*
|
||||
*/
|
||||
public class EffectCmd extends AbstractDevCmd {
|
||||
|
||||
public EffectCmd() {
|
||||
public EffectCmd() {
|
||||
super("effect");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void _doCmd(PlayerCharacter pcSender, String[] args,
|
||||
AbstractGameObject target) {
|
||||
int ID = 0;
|
||||
int token = 0;
|
||||
@Override
|
||||
protected void _doCmd(PlayerCharacter pcSender, String[] args,
|
||||
AbstractGameObject target) {
|
||||
int ID = 0;
|
||||
int token = 0;
|
||||
|
||||
if (args.length != 2) {
|
||||
this.sendUsage(pcSender);
|
||||
return;
|
||||
}
|
||||
ID = Integer.parseInt(args[0]);
|
||||
token = Integer.parseInt(args[1]);
|
||||
if (args.length != 2) {
|
||||
this.sendUsage(pcSender);
|
||||
return;
|
||||
}
|
||||
ID = Integer.parseInt(args[0]);
|
||||
token = Integer.parseInt(args[1]);
|
||||
|
||||
EffectsBase eb = PowersManager.setEffectToken(ID, token);
|
||||
if (eb == null) {
|
||||
throwbackError(pcSender, "Unable to find EffectsBase " + ID
|
||||
+ " to modify.");
|
||||
return;
|
||||
}
|
||||
ChatManager.chatSayInfo(pcSender,
|
||||
"EffectsBase with ID " + ID + " changed token to " + token);
|
||||
}
|
||||
EffectsBase eb = PowersManager.setEffectToken(ID, token);
|
||||
if (eb == null) {
|
||||
throwbackError(pcSender, "Unable to find EffectsBase " + ID
|
||||
+ " to modify.");
|
||||
return;
|
||||
}
|
||||
ChatManager.chatSayInfo(pcSender,
|
||||
"EffectsBase with ID " + ID + " changed token to " + token);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String _getUsageString() {
|
||||
@Override
|
||||
protected String _getUsageString() {
|
||||
return "' /effect EffectsBaseID Token'";
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String _getHelpString() {
|
||||
@Override
|
||||
protected String _getHelpString() {
|
||||
return "Temporarily places the effect token with the corresponding EffectsBase on the server";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user