Changed Redstone charge event check to PlayerInteract event, while checking same stuff for turn on/off driver, allowing a Player to be passed to the activate method and set a player Owner of a RailDriverTask. Changed log message to include Owners name on activation.
Added event to fire on PlayerQuit to stop any running drivers when a player quits as a DriverTask has an owner now and should not run without them. This includes a method to locate and stop all players driver's.
Nothing has really changed functionally, but we have a player to check for things during the Task now.
Changed Redstone charge event check to PlayerInteract event, while checking same stuff for turn on/off driver, allowing a Player to be passed to the activate method and set a player Owner of a RailDriverTask. Changed log message to include Owners name on activation.
Added event to fire on PlayerQuit to stop any running drivers when a player quits as a DriverTask has an owner now and should not run without them. This includes a method to locate and stop all players driver's.
Nothing has really changed functionally, but we have a player to check for things during the Task now.