Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.kman2010.TD;
- import org.bukkit.entity.Player;
- import org.bukkit.event.player.PlayerListener;
- import org.bukkit.event.player.PlayerLoginEvent;
- public class TDPlayerListener extends PlayerListener {
- public static TD plugin;
- public TDPlayerListener(TD instance) {
- plugin = instance;
- }
- @Override
- public void onPlayerLogin(PlayerLoginEvent event) {
- Player player = event.getPlayer();
- // Only toggle if it is not already enabled
- if(!plugin.enabled(player)) {
- plugin.toggleTD(player);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement