Skip to content

WrongThreadException

Namespace Mc.Scripting · Kind class (sealed)

public sealed class WrongThreadException : InvalidOperationException

A game-facing API was called from a thread other than the server tick thread.

Use Scheduler.RunSync to hop to the tick thread.

Member Description
WrongThreadException(string api) Creates the exception for the named API.
public WrongThreadException(string api)

Creates the exception for the named API.

Parameters

Name Type Description
api string What was called.