#Entity related methods in server/world throw exceptions

9 messages · Page 1 of 1 (latest)

umbral tundra
#
event.register(
        Commands.literal("kill_items")
            .executes(ctx => {
                var entities = ctx.source.server.getEntities();
                ctx.source.sendSuccess("Completed", false);
                return 1;
        })
    )
wooden wolfBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

umbral tundra
#

For some reason it seems to be throwing exceptions on this line here:
var entities = ctx.source.server.getEntities();

uneven socketBOT
#

Paste version of message.txt from @umbral tundra

umbral tundra
#

I have tried using different variations of filtered versions of this method

#

I have tried itterrating over worlds manually and trying to get all entities

#

Every time when I make a call to entity related method in a server/world it just throws exceptions, even though when I looked at other examples of people using this method - everything worked for them

#

And yet, stuff like ctx.source.server.runCommandSilent and ctx.source.server.scheduleInTicks produces no such errors