MineColonies

MineColonies

57M Downloads

Command /mc colonies info <number>

xavierh opened this issue · 4 comments

commented

Minecolonies version

minecolonies-universal-1.11-0.6.2214.jar

Expected behavior

  • Display the colony information

Actual behaviour

  • An unknown error occurred while attempting to perform this command

Steps to reproduce the problem

  1. Start a server
  2. Build at least 1 colony
  3. Type /mc colonies info 1 in the telnet interface
  4. get a nice java.lang.NullPointerException

I assume it try to get the information about the player running the command. As the command have been issue with the "telnet" interface, there is no player
minecraft log.txt

commented
commented

In the present case, as I specified which colony I want to show the infos for. the player information is not even been used (ShowColonyInfoCommand.java:56)

commented

My bad, it is used to send the message back :/

commented

Actually the command /mc colonies list list works but not /mc colony info

This is because ShowColonyInfoCommand.java is getting the colony from the player information just in case the colony id have not been supplied (or is invalid)