diff --git a/Resources/lang/en_GB.lang b/Resources/lang/en_GB.lang index 01c992a8..ec068698 100644 --- a/Resources/lang/en_GB.lang +++ b/Resources/lang/en_GB.lang @@ -35,10 +35,16 @@ command.reload.detailedhelp=Reloads all portal data from files in the data folde command.reload.reloaded= All Advanced Portals data reloaded command.create.help=Creates portals -command.create.noargs= You need to actually list args for portal creation. command.create.error= There was an error making the portal: command.create.console= You cannot create a portal using the console. command.create.detailedhelp=Format is /portal create (name) [tag:tagvalue] List tags after create in the format tag:value, if your value needs spaces use the format tag:"value with spaces" +command.create.complete= The portal has been successfully created. + +command.createdesti.help=Creates destinations +command.createdesti.error= There was an error making the destination: +command.createdesti.console= You cannot create a destination using the console. +command.createdesti.detailedhelp=Format is /desti create (name) [tag:tagvalue] List tags after create in the format tag:value, if your value needs spaces use the format tag:"value with spaces" +command.createdesti.complete= The destination has been successfully created. command.playeronly= Sorry but that command can only be run by a player. diff --git a/src/com/sekwah/advancedportals/core/commands/subcommands/desti/CreateDestiSubCommand.java b/src/com/sekwah/advancedportals/core/commands/subcommands/desti/CreateDestiSubCommand.java index 2b5c3e15..62707f86 100644 --- a/src/com/sekwah/advancedportals/core/commands/subcommands/desti/CreateDestiSubCommand.java +++ b/src/com/sekwah/advancedportals/core/commands/subcommands/desti/CreateDestiSubCommand.java @@ -19,14 +19,14 @@ public class CreateDestiSubCommand extends CreateSubCommand implements SubComman if(args.length > 1) { PlayerContainer player = sender.getPlayerContainer(); if(player == null) { - sender.sendMessage(Lang.translateColor("messageprefix.negative") + Lang.translate("command.create.console")); + sender.sendMessage(Lang.translateColor("messageprefix.negative") + Lang.translate("command.createdesti.console")); return; } ArrayList destiTags = this.getTagsFromArgs(args); try { AdvancedPortalsCore.getDestinationManager().createDesti(args[1], player, player.getLoc(), destiTags); } catch (PortalException portalTagExeption) { - sender.sendMessage(Lang.translateColor("messageprefix.negative") + Lang.translateColor("command.create.error") + " " + sender.sendMessage(Lang.translateColor("messageprefix.negative") + Lang.translateColor("command.createdesti.error") + " " + Lang.translate(portalTagExeption.getMessage())); } } @@ -57,11 +57,11 @@ public class CreateDestiSubCommand extends CreateSubCommand implements SubComman @Override public String getBasicHelpText() { - return Lang.translate("command.create.help"); + return Lang.translate("command.createdesti.help"); } @Override public String getDetailedHelpText() { - return Lang.translate("command.create.detailedhelp"); + return Lang.translate("command.createdesti.detailedhelp"); } } diff --git a/src/com/sekwah/advancedportals/core/commands/subcommands/portal/CreatePortalSubCommand.java b/src/com/sekwah/advancedportals/core/commands/subcommands/portal/CreatePortalSubCommand.java index 84b7a432..9136c0af 100644 --- a/src/com/sekwah/advancedportals/core/commands/subcommands/portal/CreatePortalSubCommand.java +++ b/src/com/sekwah/advancedportals/core/commands/subcommands/portal/CreatePortalSubCommand.java @@ -25,6 +25,7 @@ public class CreatePortalSubCommand extends CreateSubCommand implements SubComma ArrayList portalTags = this.getTagsFromArgs(args); try { AdvancedPortalsCore.getPortalManager().createPortal(args[1], player, portalTags); + sender.sendMessage(Lang.translateColor("messageprefix.positive") + Lang.translateColor("")); } catch (PortalException portalTagExeption) { sender.sendMessage(Lang.translateColor("messageprefix.negative") + Lang.translateColor("command.create.error") + " " + Lang.translate(portalTagExeption.getMessage()));