So I've got a command working thats suppose to execute a function with (sender, target, arg).
I'm having trouble with how im suppose to link to my constructor in another class so that it will execute?
my attempt that isnt working, hopefully this makes sense.
new sendRequest(player, target, args[1]);
return true;
public class DuelEvent {
HashMap<Player, Player> requests = new HashMap<>();
public void sendRequest(Player sender, Player target, String arg) {
//the constructor to execute
}
}