-
Notifications
You must be signed in to change notification settings - Fork 0
/
Example.java
54 lines (38 loc) · 1.16 KB
/
Example.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package me.clonalejandro.nmstest.listeners;
import me.clonalejandro.nmstest.Main;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
/**
* Created by alejandrorioscalera
* On 21/4/17
*
* -- SOCIAL NETWORKS --
*
* GitHub: https://github.com/clonalejandro or @clonalejandro
* Website: https://clonalejandro.me/
* Twitter: https://twitter.com/clonalejandro11/ or @clonalejandro11
* Keybase: https://keybase.io/clonalejandro/
*
* -- LICENSE --
*
* All rights reserved for clonalejandro ©nmstest 2017 / 2018
*/
public class Example implements Listener {
/** SMALL CONSTRUCTORS **/
private final Main plugin;
public Example(Main instance){
plugin = instance;
}
/** REST **/
@EventHandler
public void onPlayerJoinEvent(PlayerJoinEvent e){
Player p = e.getPlayer();
String header = "test";
String footer = ChatColor.AQUA + "bomp";
Tab.sendTabHeader(p, header);
Tab.sendTabFooter(p, footer);
}
}