Fixed and future-proofed help texts

#26 yo
This commit is contained in:
alisolarflare 2016-12-17 08:16:57 -05:00
parent ba528112d5
commit 4bc40f6aeb
16 changed files with 34 additions and 12 deletions

View file

@ -18,4 +18,11 @@ public class Press extends PlayerCommand {
return false;
return AliLinkAPI.sendPressEvent(player, args, AliLinkComponent.getPlugin());
}
@Override
public String[] GetHelpText(String alias){
return new String[] {
"Usage: type /"+this.GetCommandPath()+" <frequency> activate a wireless redstone block listening",
"to your frequency of choice"
};
}
}

View file

@ -17,4 +17,11 @@ public class Set extends ModCommand {
return false;
return AliLinkAPI.createAliLink(player, args);
}
@Override
public String[] GetHelpText(String alias){
return new String[] {
"Usage: type /"+this.GetCommandPath()+" <frequency> set a wireless redstone block that listens",
"for signals from the players pressing the frequency of your choice"
};
}
}

View file

@ -15,6 +15,7 @@ public class CreativeBoundariesComponent extends Component{
registerCommand(plugin, new Cbgm1());
registerCommand(plugin, new Cbgm0());
registerCommand(plugin, new SetForceBoundaries());
registerListener(plugin, new PlotChangeListener());
//registerListener(plugin, new ItemRestrictionListener(this));
}

View file

@ -16,6 +16,6 @@ public class Cbgm0 extends PlayerCommand{
return true;
}
public String[] GetHelpText(String alias){
return new String[]{"Creative Boundaries Usage: /cbgm0"};
return new String[]{"Creative Boundaries Usage: /"+this.GetCommandPath()+""};
}
}

View file

@ -17,7 +17,7 @@ public class Cbgm1 extends PlayerCommand {
@Override
public String[] GetHelpText(String alias){
return new String[] {
"Usage: When in a town that you either own or are a resident of, type /cbgm1 to gain creative"
"Usage: When in a town that you either own or are a resident of, type /"+this.GetCommandPath()+" to gain creative"
};
}
}

View file

@ -17,6 +17,6 @@ public class SetForceBoundaries extends ModCommand{
}
@Override
public String[] GetHelpText(String alias){
return new String[]{"Usage: /SetForceBoundaries <True/False/0/1>"};
return new String[]{"Usage: /"+this.GetCommandPath()+" <True/False/0/1>"};
}
}

View file

@ -14,4 +14,10 @@ public class GetLetterDye extends PlayerCommand{
player.getInventory().addItem(LetterDye.getLetterDye());
return false;
}
@Override
public String[] GetHelpText(String alias){
return new String[]{
"Usage: Type /"+this.GetCommandPath()+" to get letter dyes that can change your username!"
};
}
}

View file

@ -24,7 +24,7 @@ public class FlairMe extends PlayerCommand {
@Override
public String[] GetHelpText(String alias){
return new String[]{
"Usage: Type /flairme and enter a portal with coloured",
"Usage: Type /"+this.GetCommandPath()+" and enter a portal with coloured",
"wool underneath to change your flair"
};
}

View file

@ -30,7 +30,7 @@ public class SetProximityLocation extends ModCommand{
}
public String[] GetHelpText(String alias){
return new String[] {
"Usage: /SetProximityLocation <start/end/0/1>",
"Usage: /"+this.GetCommandPath()+" <start/end/0/1>",
"Use this command to set a proximity space: all players",
"within this space will become flair-able, and portals will",
"change their colour state."

View file

@ -44,8 +44,9 @@ public class Test extends ModCommand{
@Override
public String[] GetHelpText(String alias){
return new String[]{
"Usage: /gpowertest [colour=red,orange,yellow,green,blue,purple,grey] [active=true/false]"
"Usage: /"+this.GetCommandPath()+" [colour=red,orange,yellow,green,blue,purple,grey] [active=true/false]"
};
}
}

View file

@ -14,7 +14,7 @@ public class PowerDown extends PlayerCommand {
@Override
public String[] GetHelpText(String alias){
return new String[]{
"Usage: Type /PowerDown to disable your g-power"
"Usage: Type /"+this.GetCommandPath()+" to disable your g-power"
};
}

View file

@ -14,7 +14,7 @@ public class PowerUp extends PlayerCommand {
@Override
public String[] GetHelpText(String alias){
return new String[]{
"Usage: Type /PowerUp to activate your registered G-Power"
"Usage: Type /"+this.GetCommandPath()+" to activate your registered G-Power"
};
}
@Override

View file

@ -55,7 +55,7 @@ public class getInsurance extends ModCommand {
@Override
public String[] GetHelpText(String alias){
return new String[]{
"Usage: /getInsurance [amount] [type:nugget/bar/block/compound]",
"Usage: /"+this.GetCommandPath()+" [amount] [type:nugget/bar/block/compound]",
"Use this command to get gold-standard inventory insurance, that saves ",
"items in an inventory upon death. One nugget saves one ItemStack, a bar",
"saves nine, a block saves 54. Compound converts amount (in nuggets) to a",

View file

@ -25,7 +25,7 @@ public class getInsuranceBlock extends ModCommand {
@Override
public String[] GetHelpText(String alias){
return new String[]{
"Usage: /insurance getblock [amount]",
"Usage: /"+this.GetCommandPath()+" [amount]",
"This command returns an insurance block, which on death,",
"splits into 9 insurance ingot which each saves 1 row of",
"inventory per ingot"

View file

@ -25,7 +25,7 @@ public class getInsuranceIngot extends ModCommand {
@Override
public String[] GetHelpText(String alias){
return new String[]{
"Usage: /insurance getingot [amount]",
"Usage: /"+this.GetCommandPath()+" [amount]",
"This command returns an insurance ingot, which on death,",
"saves one row of inventory"
};

View file

@ -24,7 +24,7 @@ public class getInsuranceNugget extends ModCommand {
@Override
public String[] GetHelpText(String alias){
return new String[]{
"Usage: /insurance getnugget [amount]",
"Usage: /"+this.GetCommandPath()+" [amount]",
"This command returns an insurance nugget, which on death,",
"saves one itemslot in the inventory"
};