Command /mc colonies info <number>
xavierh opened this issue · 4 comments
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
- Start a server
- Build at least 1 colony
- Type /mc colonies info 1 in the telnet interface
- 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
Yeah unfortunately you have to run the commands as a player. We will have
to change some things in the future to get it working with the console.
2017-01-11 9:36 GMT-02:00 xavierh <[email protected]>:
… 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 list 1 colony
3. Type */mc colonies list* 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
<https://github.com/Minecolonies/minecolonies/files/698674/minecraft.log.txt>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#439>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AGI9y2_5ATcOW-1ndRI7qZVmyaC8rwOYks5rRL7TgaJpZM4LgezA>
.
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)