-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add events and expose more song details through the API
- Loading branch information
1 parent
d6461ce
commit 3b2e9f0
Showing
7 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/com/bluedragonmc/jukebox/event/SongEndEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.bluedragonmc.jukebox.event | ||
|
||
import com.bluedragonmc.jukebox.Song | ||
import com.velocitypowered.api.proxy.Player | ||
|
||
class SongEndEvent(player: Player, song: Song) : SongEvent(player, song) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.bluedragonmc.jukebox.event | ||
|
||
import com.bluedragonmc.jukebox.Song | ||
import com.velocitypowered.api.proxy.Player | ||
|
||
abstract class SongEvent(val player: Player, val song: Song) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/com/bluedragonmc/jukebox/event/SongPauseEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.bluedragonmc.jukebox.event | ||
|
||
import com.bluedragonmc.jukebox.Song | ||
import com.velocitypowered.api.proxy.Player | ||
|
||
class SongPauseEvent(player: Player, song: Song, val timeInTicks: Int) : SongEvent(player, song) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/com/bluedragonmc/jukebox/event/SongResumeEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.bluedragonmc.jukebox.event | ||
|
||
import com.bluedragonmc.jukebox.Song | ||
import com.velocitypowered.api.proxy.Player | ||
|
||
class SongResumeEvent(player: Player, song: Song, val timeInTicks: Int) : SongEvent(player, song) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/com/bluedragonmc/jukebox/event/SongStartEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.bluedragonmc.jukebox.event | ||
|
||
import com.bluedragonmc.jukebox.Song | ||
import com.velocitypowered.api.proxy.Player | ||
|
||
class SongStartEvent(player: Player, song: Song, val startTimeInTicks: Int) : SongEvent(player, song) |