Skip to content

Commit 70f0d1a

Browse files
committed
Add roaming data point in /petinfo
1 parent 2442409 commit 70f0d1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/infotoast/petcontrol/command/PetInfoCommand.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import org.bukkit.entity.Player;
1111

1212
import org.infotoast.petcontrol.PetControl;
13+
import org.infotoast.petcontrol.customanimals.RoamingCat;
14+
import org.infotoast.petcontrol.customanimals.RoamingDog;
1315

1416
import java.util.Objects;
1517
import java.util.UUID;
@@ -45,6 +47,11 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
4547
sender.sendMessage("§6§l| §r§1Owner: §r§9" + ownerName);
4648
String isSitting = (tamableAnimal.isInSittingPose()) ? "Yes" : "No";
4749
sender.sendMessage("§6§l| §r§1Sitting: §r§9" + isSitting);
50+
if (tamableAnimal instanceof RoamingCat || tamableAnimal instanceof RoamingDog) {
51+
sender.sendMessage("§6§l| §r§1Roaming: §r§9Yes");
52+
} else {
53+
sender.sendMessage("§6§l| §r§1Roaming: §r§9No");
54+
}
4855
}
4956
}
5057
sender.sendMessage("§6§l------------------------------------");

0 commit comments

Comments
 (0)