pub struct Omegga {
    pub awaiter_txs: Arc<DashMap<RequestId, Sender<Response>>>,
    /* private fields */
}

Fields

awaiter_txs: Arc<DashMap<RequestId, Sender<Response>>>

Implementations

Create a new Omegga instance.

Spawn the listener.

Write out an RPC message.

Write out an RPC notification.

Write out an RPC response.

Write out an RPC request.

Note: This does not internally expect a response from the server. Prefer using request over this for the ability to await a response from the RPC server.

Request a response from the RPC server. This returns a ResponseAwaiter, a Future that awaits a response.

Register commands with Omegga. Call when the plugin is initialized.

Prints a message to the Omegga console.

Prints a message to the Omegga console in error color.

Prints a message to the Omegga console in info color.

Prints a message to the Omegga console in warn color.

Prints a message to the Omegga console in trace color.

Gets an object from the store.

Sets an object in the store.

Deletes an object from the store.

Wipes the store.

Gets a list of keys in the store.

Writes a line out to the Brickadia server.

Broadcasts a line.

Whispers a line to a user by their name.

Gets a list of all players.

Get all player positions.

Get the role setup.

Get the ban list.

Get a list of the server’s saves.

Get the path to a specific save.

Gets the server’s current save data as a brickadia-rs save object.

Clears a player’s bricks by their name.

Clear all bricks.

Save bricks to a named save.

Load a save, provided an offset in the world.

Load a save onto a player’s clipboard.

Reads a save (from a save file), and returns its data as a brickadia-rs save object.

Loads a save (from brickadia-rs save data) into the world, provided an offset.

Loads a save (from brickadia-rs save data) onto a player’s clipboard.

Changes the map.

Get a player.

Get a player’s roles.

Get a player’s permissions.

Get a player’s name color (6-digit hexadecimal).

Get a player’s position.

Get a player’s ghost brick data.

Get a player’s paint data.

Get a player’s template bounds.

Get a player’s template data as a brickadia-rs save object.

Load brickadia-rs save data at a player’s template.

Get a plugin.

Emit a custom event to a plugin.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.