Was trying to make an item that could run the /respawningstructures respawnClosestStructure from the Respawning Structures mod, but unfortunately that one has no way to set a location. It just grabs the nearest structure to the player that used the command, and since the player isn't an op, nothing happens.
Running it with event.runCommand also doesn't work, since there's no player for it to get the location of.
So I was wondering if there was any way to run a command via player.runCommand, but have it be run as an op?