Skip to content

Commit

Permalink
Added some bungee examples
Browse files Browse the repository at this point in the history
  • Loading branch information
joserobjr committed Oct 23, 2016
1 parent 0a2e4af commit 9d9eb20
Show file tree
Hide file tree
Showing 4 changed files with 455 additions and 1 deletion.
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
}
}
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)

}
Loading

0 comments on commit 9d9eb20

Please sign in to comment.