Add stuff - first commit

This commit is contained in:
ChomeNS
2023-03-18 18:04:06 +07:00
commit d0f5d29092
41 changed files with 7176 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package me.chayapak1.chomensbot_mabe.command;
import lombok.Getter;
import me.chayapak1.chomensbot_mabe.Bot;
import net.kyori.adventure.text.Component;
public class PlayerCommandContext extends CommandContext {
@Getter private final String playerName;
private final Bot bot;
public PlayerCommandContext (Bot bot, String playerName) {
super(bot);
this.bot = bot;
this.playerName = playerName;
}
@Override
public void sendOutput (Component message) {
bot.chat().tellraw(message);
}
@Override
public Component displayName () {
return Component.text(playerName);
}
}