mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-22 10:36:17 +01:00
Changed messages
This commit is contained in:
parent
641154a965
commit
e8633063e3
@ -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.
|
||||
|
||||
|
@ -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<DataTag> 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");
|
||||
}
|
||||
}
|
||||
|
@ -25,6 +25,7 @@ public class CreatePortalSubCommand extends CreateSubCommand implements SubComma
|
||||
ArrayList<DataTag> 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()));
|
||||
|
Loading…
Reference in New Issue
Block a user