-
Notifications
You must be signed in to change notification settings - Fork 4
Listening For Events
Alexander edited this page Mar 13, 2019
·
2 revisions
Here we will create a simple event that listens for when a player joins and welcomes them The function name corresponds to the original java event name.
function PlayerJoinEvent(event){
//Here we get our player from the event
var player = event.getPlayer();
//Here we send a welcome message to our player from the event
player.sendMessage("welcome to Server!");
}