-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
455 additions
and
1 deletion.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
Examples/Bungee/src/main/kotlin/example/kotlinfun/bungee/ExamplePlugin.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,13 @@ | ||
package example.kotlinfun.bungee | ||
|
||
import net.md_5.bungee.api.plugin.Plugin | ||
|
||
class ExamplePlugin : Plugin() { | ||
companion object { | ||
lateinit var instance : ExamplePlugin | ||
} | ||
|
||
override fun onEnable() { | ||
instance = this | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
Examples/Bungee/src/main/kotlin/example/kotlinfun/bungee/SessionData.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,13 @@ | ||
package example.kotlinfun.bungee | ||
|
||
import br.com.gamemods.kotlinfun.bungee.AutoDataCompanion | ||
import br.com.gamemods.kotlinfun.bungee.PlayerData | ||
import net.md_5.bungee.api.connection.ProxiedPlayer | ||
|
||
/** | ||
* This data will be associated to the player while he is connected to the proxy | ||
*/ | ||
class SessionData(player: ProxiedPlayer) : PlayerData(player) { | ||
companion object : AutoDataCompanion<SessionData>(ExamplePlugin.instance, ::SessionData) | ||
|
||
} |
Oops, something went wrong.