TShock
TShock copied to clipboard
`/region define` throws NRE if player is a guest(or used `/setup`)
- TShock version: 4.5.4
- TShock build number (if known):
Reproduction steps (if applicable)?
-
/setup [...]or give guest/regionperms -
/region set 1&/region set 2 -
/region define something - Command failed, check logs for more details.
Any stack traces or error messages (if known)?
System.NullReferenceException: Object reference not set to an instance of an object.
at TShockAPI.Commands.Region(CommandArgs args)
at TShockAPI.Command.Run(String msg, Boolean silent, TSPlayer ply, List`1 parms)
Any screenshots?
N/A
Any log messages from files that end in .log or .txt? What are the last 100 log messages from the server console?
2021-06-25 20:42:27 - <>c: INFO: Port overridden by startup argument. Set to 7777
2021-06-25 20:42:28 - TextLog: INFO: TShock 4.5.4.0 (Blood Moon edition) now running.
2021-06-25 20:42:28 - TShock: INFO: AutoSave Enabled
2021-06-25 20:42:28 - TShock: INFO: Backups Disabled
2021-06-25 20:42:29 - TShock: INFO: Welcome to TShock for Terraria!
2021-06-25 20:42:29 - TShock: INFO: TShock comes with no warranty & is free software.
2021-06-25 20:42:29 - TShock: INFO: You can modify & distribute it under the terms of the GNU GPLv3.
2021-06-25 20:42:32 - TShock: INFO: Login before join enabled. Users may be prompted for an account specific password instead of a server password on connect.
2021-06-25 20:42:32 - TShock: INFO: Login using UUID enabled. Users automatically login via UUID.
2021-06-25 20:42:32 - TShock: INFO: A malicious server can easily steal a user's UUID. You may consider turning this option off if you run a public server.
2021-06-25 20:43:11 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Test1
2021-06-25 20:43:12 - TShock: INFO: Test1 (127.0.0.1) from 'guest' group joined. (1/2)
2021-06-25 20:43:12 - Utils: INFO: Broadcast: Test1 has joined.
2021-06-25 20:43:13 - TextLog: VERBOSE: Bouncer / OnPlayerBuff rejected hostile/pvp from Test1
2021-06-25 20:43:13 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Test1
2021-06-25 20:43:14 - Utils: INFO: Test1 executed: /setup 8346906.
2021-06-25 20:43:17 - TextLog: VERBOSE: Bouncer / OnPlayerBuff rejected hostile/pvp from Test1
2021-06-25 20:43:17 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Test1
2021-06-25 20:43:21 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Test1
2021-06-25 20:43:21 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Test1
2021-06-25 20:43:29 - Utils: INFO: Test1 executed: /region.
2021-06-25 20:43:30 - Utils: INFO: Test1 executed: /region set 1.
2021-06-25 20:43:34 - Utils: INFO: Test1 executed: /region set 2.
2021-06-25 20:43:43 - Utils: INFO: Test1 executed: /region define ThisIsARegion.
2021-06-25 20:43:43 - Command: ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
at TShockAPI.Commands.Region(CommandArgs args)
at TShockAPI.Command.Run(String msg, Boolean silent, TSPlayer ply, List`1 parms)
2021-06-25 20:43:46 - TextLog: VERBOSE: Bouncer / OnPlayerBuff rejected hostile/pvp from Test1
2021-06-25 20:43:46 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Test1
2021-06-25 20:43:46 - TextLog: VERBOSE: Bouncer / OnPlayerBuff rejected hostile/pvp from Test1
2021-06-25 20:43:46 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Test1
2021-06-25 20:43:49 - Utils: INFO: Server executed: /exit.
2021-06-25 20:43:49 - Utils: INFO: Broadcast: Saving world...
2021-06-25 20:43:50 - Utils: INFO: Broadcast: World saved.
2021-06-25 20:43:50 - SaveManager: INFO: World saved at (C:\Users\REDACTED\Documents\My Games\Terraria\Worlds\Test2.wld)
2021-06-25 20:43:50 - Utils: INFO: Broadcast: Server shutting down!
2021-06-25 20:43:50 - Utils: INFO: Broadcast: Test1 has left.
2021-06-25 20:43:50 - TShock: INFO: Test1 disconnected.
What plugins and what versions of those plugins are you running?
TShock 4.5.4