Commit e5ffa74 1 parent 49880a4 commit e5ffa74 Copy full SHA for e5ffa74
File tree 1 file changed +14
-1
lines changed
src/main/java/world/bentobox/magiccobblestonegenerator/listeners
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 16
16
import world .bentobox .bentobox .api .events .island .IslandDeleteEvent ;
17
17
import world .bentobox .bentobox .api .events .island .IslandRegisteredEvent ;
18
18
import world .bentobox .bentobox .api .events .island .IslandResettedEvent ;
19
+ import world .bentobox .bentobox .api .events .team .TeamSetownerEvent ;
19
20
import world .bentobox .magiccobblestonegenerator .StoneGeneratorAddon ;
20
21
21
22
@@ -82,6 +83,18 @@ public void onIslandCreated(IslandRegisteredEvent event)
82
83
}
83
84
84
85
86
+ /**
87
+ * This method handles Team Owner Change event
88
+ *
89
+ * @param event Event that must be handled.
90
+ */
91
+ @ EventHandler (priority = EventPriority .MONITOR , ignoreCancelled = true )
92
+ public void onTeamOwnerChange (TeamSetownerEvent event )
93
+ {
94
+ this .addon .getAddonManager ().validateIslandData (event .getIsland ());
95
+ }
96
+
97
+
85
98
/**
86
99
* This method handles island deletion. On island deletion it should remove generator data too.
87
100
*
@@ -98,4 +111,4 @@ public void onIslandDelete(IslandDeleteEvent event)
98
111
* stores addon instance
99
112
*/
100
113
private final StoneGeneratorAddon addon ;
101
- }
114
+ }
You can’t perform that action at this time.
0 commit comments