Server user

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
gmg
Kobold
Posts: 5
Joined: Mon Aug 17, 2020 8:15 am

Server user

Post by gmg »

So I start a server and my user is called gm. Other users connect and can whisper to me using my username. However, I realised that I cannot run

Code: Select all

player.getName()
The error I get is

Code: Select all

java.lang.NullPointerException: Cannot invoke "net.rptools.maptool.model.player.PlayerInfo.name()"
because the return value of "java.util.concurrent.CompletableFuture.get()" is
null error executing expression player.getName().
Also when I run

Code: Select all

player.getPlayers()
I get an empty array as a result.

What's happening here? Is this done on purpose or is it a bug?

Post Reply

Return to “Macros”