forked from MagicBane/Server
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.7 KiB
49 lines
1.7 KiB
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ . |
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌· |
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀ |
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌ |
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀ |
|
// Magicbane Emulator Project © 2013 - 2022 |
|
// www.magicbane.com |
|
|
|
|
|
package engine.devcmd.cmds; |
|
|
|
import engine.devcmd.AbstractDevCmd; |
|
import engine.gameManager.SessionManager; |
|
import engine.net.client.ClientConnection; |
|
import engine.net.client.handlers.VendorDialogMsgHandler; |
|
import engine.objects.AbstractGameObject; |
|
import engine.objects.PlayerCharacter; |
|
|
|
public class GetVaultCmd extends AbstractDevCmd { |
|
|
|
public GetVaultCmd() { |
|
super("getvault"); |
|
} |
|
|
|
@Override |
|
protected void _doCmd(PlayerCharacter pcSender, String[] args, |
|
AbstractGameObject target) { |
|
if (pcSender == null) |
|
return; |
|
|
|
ClientConnection cc = SessionManager.getClientConnection(pcSender); |
|
if (cc == null) |
|
return; |
|
|
|
VendorDialogMsgHandler.getVault(pcSender, null, cc); |
|
this.setTarget(pcSender); //for logging |
|
} |
|
|
|
@Override |
|
protected String _getUsageString() { |
|
return "' /getvault'"; |
|
} |
|
|
|
@Override |
|
protected String _getHelpString() { |
|
return "Opens account vault"; |
|
} |
|
|
|
}
|
|
|