mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-01-26 01:51:46 +01:00
Added saving on create
This commit is contained in:
parent
40eba83468
commit
be858f308b
@ -26,10 +26,12 @@ public class CreateDestiSubCommand extends CreateSubCommand implements SubComman
|
||||
ArrayList<DataTag> destiTags = this.getTagsFromArgs(args);
|
||||
try {
|
||||
Destination desti = AdvancedPortalsCore.getDestinationManager().createDesti(args[1], player, player.getLoc(), destiTags);
|
||||
sender.sendMessage(Lang.translateColor("messageprefix.positive") + Lang.translateColor("command.createdesti.complete"));
|
||||
sender.sendMessage(Lang.translateColor("command.create.tags"));
|
||||
for (DataTag tag: desti.getArgs()) {
|
||||
sender.sendMessage(tag.NAME + ":" + tag.VALUE);
|
||||
if(desti != null) {
|
||||
sender.sendMessage(Lang.translateColor("messageprefix.positive") + Lang.translateColor("command.createdesti.complete"));
|
||||
sender.sendMessage(Lang.translateColor("command.create.tags"));
|
||||
for (DataTag tag : desti.getArgs()) {
|
||||
sender.sendMessage(tag.NAME + ":" + tag.VALUE);
|
||||
}
|
||||
}
|
||||
} catch (PortalException portalTagExeption) {
|
||||
sender.sendMessage(Lang.translateColor("messageprefix.negative") + Lang.translateColor("command.createdesti.error") + " "
|
||||
|
@ -26,10 +26,12 @@ public class CreatePortalSubCommand extends CreateSubCommand implements SubComma
|
||||
ArrayList<DataTag> portalTags = this.getTagsFromArgs(args);
|
||||
try {
|
||||
AdvancedPortal portal = AdvancedPortalsCore.getPortalManager().createPortal(args[1], player, portalTags);
|
||||
sender.sendMessage(Lang.translateColor("messageprefix.positive") + Lang.translateColor("command.create.complete"));
|
||||
sender.sendMessage(Lang.translateColor("command.create.tags"));
|
||||
for (DataTag tag: portal.getArgs()) {
|
||||
sender.sendMessage(tag.NAME + ":" + tag.VALUE);
|
||||
if(portal != null) {
|
||||
sender.sendMessage(Lang.translateColor("messageprefix.positive") + Lang.translateColor("command.create.complete"));
|
||||
sender.sendMessage(Lang.translateColor("command.create.tags"));
|
||||
for (DataTag tag: portal.getArgs()) {
|
||||
sender.sendMessage(tag.NAME + ":" + tag.VALUE);
|
||||
}
|
||||
}
|
||||
} catch (PortalException portalTagExeption) {
|
||||
sender.sendMessage(Lang.translateColor("messageprefix.negative") + Lang.translateColor("command.create.error") + " "
|
||||
|
Loading…
Reference in New Issue
Block a user