mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 09:08:03 +01:00
Comment fix.
This commit is contained in:
parent
2825f9535e
commit
b1f798ae5b
@ -8,7 +8,7 @@ import us.tastybento.bskyblock.config.Settings;
|
|||||||
import us.tastybento.bskyblock.util.Util;
|
import us.tastybento.bskyblock.util.Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a customer help for the /island go and /island sethome commands. It overrides the default help sub command.
|
* This is a custom help for the /island go and /island sethome commands. It overrides the default help sub command.
|
||||||
* The number of homes can change depending on the player's permissions and config.yml settings.
|
* The number of homes can change depending on the player's permissions and config.yml settings.
|
||||||
* @author ben
|
* @author ben
|
||||||
*
|
*
|
||||||
@ -22,6 +22,7 @@ public class IslandMultiHomeHelp extends CompositeCommand {
|
|||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
this.setOnlyPlayer(true);
|
this.setOnlyPlayer(true);
|
||||||
|
// Inherit parameters from the respective parent class - in this case, only /island go and /island sethome
|
||||||
this.setParameters(parent.getParameters());
|
this.setParameters(parent.getParameters());
|
||||||
this.setDescription(parent.getDescription());
|
this.setDescription(parent.getDescription());
|
||||||
this.setPermission(parent.getPermission());
|
this.setPermission(parent.getPermission());
|
||||||
@ -29,6 +30,7 @@ public class IslandMultiHomeHelp extends CompositeCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean execute(User user, List<String> args) {
|
public boolean execute(User user, List<String> args) {
|
||||||
|
// This will only be shown if it is for a player
|
||||||
if (user.isPlayer()) {
|
if (user.isPlayer()) {
|
||||||
// Get elements
|
// Get elements
|
||||||
String params = getParameters().isEmpty() ? "" : user.getTranslation(getParameters()) + " ";
|
String params = getParameters().isEmpty() ? "" : user.getTranslation(getParameters()) + " ";
|
||||||
|
Loading…
Reference in New Issue
Block a user