mirror of https://github.com/Minestom/Minestom.git
27 lines
538 B
Java
27 lines
538 B
Java
package fr.themode.minestom.event;
|
|
|
|
import fr.themode.minestom.entity.Player;
|
|
|
|
public class PlayerCommandEvent extends CancellableEvent {
|
|
|
|
private Player player;
|
|
private String command;
|
|
|
|
public PlayerCommandEvent(Player player, String command) {
|
|
this.player = player;
|
|
this.command = command;
|
|
}
|
|
|
|
public Player getPlayer() {
|
|
return player;
|
|
}
|
|
|
|
public String getCommand() {
|
|
return command;
|
|
}
|
|
|
|
public void setCommand(String command) {
|
|
this.command = command;
|
|
}
|
|
}
|