If the server was set to creative, players can give themselves items from their saved hotbar slots. And with books, you can do this thing where when someone with perms turns to a page, it makes the player execute a command. And they probably made you op them with it.