Files
src
build.gradle
manifest.kod
Code
19 1,192
src/main/java/com/playerinteractions/PlayerInteractions.java
package com.playerinteractions;
import com.playerinteractions.commands.*;
import com.playerinteractions.managers.CooldownManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class PlayerInteractions extends JavaPlugin {
private CooldownManager cooldownManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.cooldownManager = new CooldownManager(this);
registerCommands();
getLogger().info("PlayerInteractions has been enabled!");
}
@Override
public void onDisable() {
getLogger().info("PlayerInteractions has been disabled!");
}
private void registerCommands() {
getCommand("highfive").setExecutor(new HighFiveCommand(this));
getCommand("hug").setExecutor(new HugCommand(this));
getCommand("poke").setExecutor(new PokeCommand(this));
getCommand("slap").setExecutor(new SlapCommand(this));
getCommand("wave").setExecutor(new WaveCommand(this));
getCommand("dance").setExecutor(new DanceCommand(this));
getCommand("facepalm").setExecutor(new FacepalmCommand(this));
getCommand("cry").setExecutor(new CryCommand(this));
getCommand("laugh").setExecutor(new LaughCommand(this));
getCommand("kiss").setExecutor(new KissCommand(this));
}
}