Files
src
build.gradle
Code
10 706
src/main/java/com/plugin/totembypass/TotemBypass.java
package com.plugin.totembypass;
import com.plugin.totembypass.commands.TotemBypassCommand;
import com.plugin.totembypass.config.ConfigManager;
import com.plugin.totembypass.listeners.CombatListener;
import com.plugin.totembypass.listeners.TotemListener;
import com.plugin.totembypass.managers.TotemManager;
import com.plugin.totembypass.managers.WeaponManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class TotemBypass extends JavaPlugin {
private ConfigManager configManager;
private TotemManager totemManager;
private WeaponManager weaponManager;
@Override
public void onEnable() {
this.configManager = new ConfigManager(this);
this.totemManager = new TotemManager(this);
this.weaponManager = new WeaponManager(this);
this.getCommand("totembypass").setExecutor(new TotemBypassCommand(this));
Bukkit.getPluginManager().registerEvents(new TotemListener(this), this);
Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
this.getLogger().info("TotemBypass has been enabled!");
}
@Override
public void onDisable() {
this.totemManager.clearMarkedPlayers();
this.getLogger().info("TotemBypass has been disabled!");
}
}