Property | Type | Description | |
---|---|---|---|
AuthToken | int | ||
Backups | |||
Bans | BanManager | ||
CharacterDB | |||
DB | IDbConnection | ||
Geo | |||
Groups | TShockAPI.DB.GroupManager | ||
Itembans | ItemManager | ||
Log | ILog | ||
OverridePort | bool | ||
Players | TShockAPI.TSPlayer[] | ||
ProjectileBans | ProjectileManagager | ||
RESTStartupTokens | SecureRest.TokenData>.Dictionary | ||
Regions | RegionManager | ||
RememberedPos | |||
RestApi | |||
RestManager | |||
SavePath | string | ||
ServerSideCharacterConfig | ServerSideConfig | ||
ShuttingDown | bool | ||
StatTracker | |||
TileBans | TileManager | ||
UpdateManager | TShockAPI.UpdateManager | ||
Users | |||
Utils | Utils | ||
VersionCodename | string | ||
VersionNum | System.Version | ||
Warps | |||
instance | TerrariaPlugin |
Method | Description | |
---|---|---|
CheckIgnores ( TShockAPI.TSPlayer player ) : bool |
CheckIgnores - Checks a players ignores...?
|
|
CheckProjectilePermission ( TShockAPI.TSPlayer player, int index, int type ) : bool |
CheckProjectilePermission - Checks if a projectile is banned.
|
|
CheckRangePermission ( TShockAPI.TSPlayer player, int x, int y, int range = 32 ) : bool |
CheckRangePermission - Checks if a player has permission to modify a tile dependent on range checks.
|
|
CheckSpawn ( int x, int y ) : bool |
CheckSpawn - Checks to see if a location is inside the spawn protection zone.
|
|
CheckTilePermission ( TShockAPI.TSPlayer player, int tileX, int tileY, bool paint = false ) : bool |
CheckTilePermission - Checks to see if a player has the ability to modify a tile at a given position.
|
|
CheckTilePermission ( TShockAPI.TSPlayer player, int tileX, int tileY, short tileType, |
CheckTilePermission - Checks to see if a player has permission to modify a tile in general.
|
|
Distance ( Vector2 value1, Vector2 value2 ) : float |
Distance - Determines the distance between two vectors.
|
|
HackedInventory ( TShockAPI.TSPlayer player ) : bool |
HackedInventory - Checks to see if a user has a hacked inventory. In addition, messages players the result.
|
|
HandleCommandLinePostConfigLoad ( string parms ) : void |
HandleCommandLinePostConfigLoad - Handles additional command line options after the config file is read.
|
|
OnConfigRead ( |
OnConfigRead - Fired when the config file has been read.
|
|
StartInvasion ( int type ) : void |
StartInvasion - Starts an invasion on the server.
|
|
TShock ( Terraria.Main game ) : System |
TShock - The constructor for the TShock plugin.
|
Method | Description | |
---|---|---|
CrashReporter_HeapshotRequesting ( object sender, |
||
Dispose ( bool disposing ) : void |
Dispose - Called when disposing.
|
Method | Description | |
---|---|---|
ComputeMaxStyles ( ) : void |
ComputeMaxStyles - Computes the max styles...
|
|
CurrentDomain_UnhandledException ( object sender, |
Handles exceptions that we didn't catch earlier in the code, or in Terraria.
|
|
FixChestStacks ( ) : void |
FixChestStacks - Verifies that each stack in each chest is valid and not over the max stack count.
|
|
HandleCommandLine ( string parms ) : void |
HandleCommandLine - Handles the command line parameters passed to the server.
|
|
Initialize ( ) : void | ||
NetHooks_NameCollision ( NameCollisionEventArgs args ) : void |
NetHooks_NameCollision - Internal hook fired when a name collision happens.
|
|
NetHooks_SendData ( Hooks.SendDataEventArgs e ) : void |
NetHooks_SendData - Fired when the server sends data.
|
|
NpcHooks_OnStrikeNpc ( Hooks.NpcStrikeEventArgs e ) : void |
NpcHooks_OnStrikeNpc - Fired when an NPC strike packet happens.
|
|
OnAccountCreate ( Hooks args ) : void |
OnAccountCreate - Internal hook fired on account creation.
|
|
OnAccountDelete ( Hooks args ) : void |
OnAccountDelete - Internal hook fired on account delete.
|
|
OnChat ( ServerChatEventArgs args ) : void |
OnChat - Fired when a player chats. Used for handling chat and commands.
|
|
OnConnect ( ConnectEventArgs args ) : void |
OnConnect - Fired when a player connects to the server.
|
|
OnGetData ( Hooks.GetDataEventArgs e ) : void |
OnGetData - Called when the server gets raw data packets.
|
|
OnGreetPlayer ( GreetPlayerEventArgs args ) : void |
OnGreetPlayer - Fired when a player is greeted by the server. Handles things like the MOTD, join messages, etc.
|
|
OnHalloweenCheck ( HalloweenCheckEventArgs args ) : void |
OnHalloweenCheck - Internal hook fired when the HalloweenCheck happens.
|
|
OnHardUpdate ( HardmodeTileUpdateEventArgs args ) : void |
OnHardUpdate - Fired when a hardmode tile update event happens.
|
|
OnItemForceIntoChest ( ForceItemIntoChestEventArgs args ) : void |
OnItemForceIntoChest - Internal hook fired when a player quick stacks items into a chest.
|
|
OnJoin ( JoinEventArgs args ) : void |
OnJoin - Internal hook called when a player joins. This is called after OnConnect.
|
|
OnLeave ( LeaveEventArgs args ) : void |
OnLeave - Called when a player leaves the server.
|
|
OnPlayerLogin ( PlayerPostLoginEventArgs args ) : void |
OnPlayerLogin - Fires the PlayerLogin hook to listening plugins.
|
|
OnPlayerPreLogin ( Hooks args ) : void |
OnPlayerPreLogin - Internal hook fired when on player pre login.
|
|
OnPostInit ( |
OnPostInit - Fired when the server loads a map, to perform world specific operations.
|
|
OnProjectileSetDefaults ( int>.SetDefaultsEventArgs |
OnProjectileSetDefaults - Called when a projectile sets the default attributes for itself.
|
|
OnSecondUpdate ( ) : void |
OnSecondUpdate - Called effectively every second for all time based checks.
|
|
OnStartHardMode ( |
OnStartHardMode - Fired when hard mode is started.
|
|
OnStatueSpawn ( Hooks.StatueSpawnEventArgs args ) : void |
OnStatueSpawn - Fired when a statue spawns.
|
|
OnUpdate ( |
OnUpdate - Called when ever the server ticks.
|
|
OnXmasCheck ( Hooks.ChristmasCheckEventArgs args ) : void |
OnXmasCheck - Internal hook fired when the XMasCheck happens.
|
|
ServerHooks_OnCommand ( CommandEventArgs args ) : void |
Called when a command is issued from the server console.
|
|
SetConsoleTitle ( bool empty ) : void |
SetConsoleTitle - Updates the console title with some pertinent information.
|
public static CheckIgnores ( TShockAPI.TSPlayer player ) : bool | ||
player | TShockAPI.TSPlayer | player - The TSPlayer object. |
return | bool |
public static CheckProjectilePermission ( TShockAPI.TSPlayer player, int index, int type ) : bool | ||
player | TShockAPI.TSPlayer | player - The TSPlayer object that created the projectile. |
index | int | index - The projectile index. |
type | int | type - The projectile type. |
return | bool |
public static CheckRangePermission ( TShockAPI.TSPlayer player, int x, int y, int range = 32 ) : bool | ||
player | TShockAPI.TSPlayer | player - The TSPlayer object. |
x | int | x - The x coordinate of the tile. |
y | int | y - The y coordinate of the tile. |
range | int | range - The range to check for. |
return | bool |
public static CheckSpawn ( int x, int y ) : bool | ||
x | int | x - The x coordinate to check. |
y | int | y - The y coordinate to check. |
return | bool |
public static CheckTilePermission ( TShockAPI.TSPlayer player, int tileX, int tileY, bool paint = false ) : bool | ||
player | TShockAPI.TSPlayer | player - The TSPlayer object. |
tileX | int | tileX - The x coordinate of the tile. |
tileY | int | tileY - The y coordinate of the tile. |
paint | bool | paint - Whether or not the tile is paint. |
return | bool |
public static CheckTilePermission ( TShockAPI.TSPlayer player, int tileX, int tileY, short tileType, |
||
player | TShockAPI.TSPlayer | player - The TSPlayer object. |
tileX | int | tileX - The x coordinate of the tile. |
tileY | int | tileY - The y coordinate of the tile. |
tileType | short | tileType - The tile type. |
actionType | actionType - The type of edit that took place. | |
return | bool |
protected CrashReporter_HeapshotRequesting ( object sender, |
||
sender | object | |
e | ||
return | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | disposing - If set, disposes of all hooks and other systems. |
return | void |
public static Distance ( Vector2 value1, Vector2 value2 ) : float | ||
value1 | Vector2 | value1 - The first vector location. |
value2 | Vector2 | value2 - The second vector location. |
return | float |
public static HackedInventory ( TShockAPI.TSPlayer player ) : bool | ||
player | TShockAPI.TSPlayer | player - The TSPlayer object. |
return | bool |
public static HandleCommandLinePostConfigLoad ( string parms ) : void | ||
parms | string | parms - The array of arguments passed in through the command line. |
return | void |
public OnConfigRead ( |
||
file | file - The config file object. | |
return | void |
public static StartInvasion ( int type ) : void | ||
type | int | type - The invasion type id. |
return | void |
public TShock ( Terraria.Main game ) : System | ||
game | Terraria.Main | game - The Terraria main game. |
return | System |
public static BackupManager,TShockAPI Backups | ||
return |
public static CharacterManager,TShockAPI.DB CharacterDB | ||
return |
public static GroupManager,TShockAPI.DB Groups | ||
return | TShockAPI.DB.GroupManager |
public static TSPlayer[],TShockAPI Players | ||
return | TShockAPI.TSPlayer[] |
public static ProjectileManagager ProjectileBans | ||
return | ProjectileManagager |
public static Dictionary |
||
return | SecureRest.TokenData>.Dictionary |
public static RememberedPosManager,TShockAPI.DB RememberedPos | ||
return |
public static RestManager,TShockAPI RestManager | ||
return |
public static ServerSideConfig ServerSideCharacterConfig | ||
return | ServerSideConfig |
public static StatTracker,TShockAPI StatTracker | ||
return |
public static UpdateManager,TShockAPI UpdateManager | ||
return | TShockAPI.UpdateManager |
public static UserManager,TShockAPI.DB Users | ||
return |
public static Version,System VersionNum | ||
return | System.Version |
public static WarpManager,TShockAPI.DB Warps | ||
return |