diff options
Diffstat (limited to 'YWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java')
| -rwxr-xr-x | YWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/YWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java b/YWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java index 09b82df..95bdad9 100755 --- a/YWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java +++ b/YWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java @@ -32,43 +32,33 @@ public class CommandCurrentBlessing implements ICommand { }
@Override
- public void processCommand(ICommandSender icommandsender,
- String[] astring) {
+ public void processCommand(ICommandSender icommandsender, String[] astring) {
if (icommandsender instanceof EntityPlayer) {
EntityPlayer entityplayer = (EntityPlayer) icommandsender;
- boolean hasBlessing = BlessingUtils
- .hasBlessing(entityplayer);
+ boolean hasBlessing = BlessingUtils.hasBlessing(entityplayer);
String blessingMsg = "";
if (hasBlessing) {
- Blessing bless = BlessingUtils
- .getBlessingInstance(
- entityplayer);
-
- blessingMsg = String.format(
- "§eCurrent Blessing - §o%s\n%s",
- bless.customName(),
- bless.description());
+ Blessing bless = BlessingUtils.getBlessingInstance(entityplayer);
+
+ blessingMsg = String.format("§eCurrent Blessing - §o%s\n%s", bless.customName(), bless.description());
} else {
blessingMsg = "You don't currently have a blessing";
}
- NewPacketHandler.SEND_MESSAGE.sendToPlayer(
- entityplayer, blessingMsg);
+ NewPacketHandler.SEND_MESSAGE.sendToPlayer(entityplayer, blessingMsg);
}
}
@Override
- public boolean canCommandSenderUseCommand(
- ICommandSender icommandsender) {
+ public boolean canCommandSenderUseCommand(ICommandSender icommandsender) {
return true;
}
@Override
- public List addTabCompletionOptions(ICommandSender icommandsender,
- String[] astring) {
+ public List addTabCompletionOptions(ICommandSender icommandsender, String[] astring) {
return null;
}
|
