diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-08-22 19:54:41 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-08-22 19:54:41 -0400 |
| commit | c918a1b6d8008773e9beebb48ba1a770405aee20 (patch) | |
| tree | 7588d9e570addc61d2f318697662e6f2156fa04e /YWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java | |
| parent | 3eb8c7a8fca3f22475d53e30f0b90a6737f313fa (diff) | |
Bulk update back to sanity
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;
}
|
