gentili / RailDriver

Bukkit Plugin for automated mining and railroad construction machine
4 stars 2 forks source link

Shifted RailDriver activation to be Player oriented to set Owner of Driver Task #13

Closed fyrenth closed 12 years ago

fyrenth commented 12 years ago

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.

fyrenth commented 12 years ago

Since this doesn't change anything functionally, I'm just gonna merge this pull in.