fardell24 ([personal profile] fardell24) wrote2015-08-06 05:42 pm

Digital and Interactive Games 2015 - Term 3, Session 7


Digital and Interactive Games 2015 – Term 3, Session 7
Today: - Player related events
Entity related event
Block ... event


EventTutorial

Location - world
x
y
z

message, spawn to jail
lobby
Arena


Listener
1) Create a Listener Class
2) In that State what event you are listening to.
3) In the OnEnable

– Login
→ PlayerJoinEvent
– Register the listener (login listener)


EventTutorial
Game
Plugin
Event Command
Plugin


.teupart(Location)

-PlayerJoinEvent
-Respawn Event


BlockBreakEvent


Add a new command “Kill them all”


Kill the mobs
Remove them
Cover with Lava