summaryrefslogtreecommitdiff
path: root/YWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2019-08-22 19:54:41 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2019-08-22 19:54:41 -0400
commitc918a1b6d8008773e9beebb48ba1a770405aee20 (patch)
tree7588d9e570addc61d2f318697662e6f2156fa04e /YWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java
parent3eb8c7a8fca3f22475d53e30f0b90a6737f313fa (diff)
Bulk update back to sanity
Diffstat (limited to 'YWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java')
-rwxr-xr-xYWD/src/main/java/fyresmodjam/commands/CommandCurrentBlessing.java26
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;
}