chore: update .gitignore and build.gradle.kts for local server testing
- Added entries to .gitignore for local Paper test server and API documentation. - Included the run-paper plugin in build.gradle.kts for local server execution. - Configured runServer task with Minecraft version 1.21.4 for testing.
This commit is contained in:
parent
d1d2b93742
commit
2d79d2a91d
260 changed files with 4808 additions and 3847 deletions
|
|
@ -0,0 +1,38 @@
|
|||
package com.loki.lochat.api.service;
|
||||
|
||||
import com.loki.lochat.data.model.BanRecord;
|
||||
import com.loki.lochat.data.model.WarnEntry;
|
||||
import net.kyori.adventure.text.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Варны и баны LoChat
|
||||
*/
|
||||
public interface PunishmentService {
|
||||
|
||||
void addWarn(UUID uuid, String playerName, String moderator, String reason, boolean silent);
|
||||
|
||||
List<WarnEntry> getWarns(UUID uuid);
|
||||
|
||||
int getWarnCount(UUID uuid);
|
||||
|
||||
/**
|
||||
* @param durationMs длительность; 0 = навсегда
|
||||
*/
|
||||
void ban(UUID uuid, String playerName, long durationMs, String reason, String bannedBy);
|
||||
|
||||
boolean unban(UUID uuid);
|
||||
|
||||
boolean isBanned(UUID uuid);
|
||||
|
||||
BanRecord getActiveBan(UUID uuid);
|
||||
|
||||
/** Сообщение при кике (MiniMessage + legacy &#) */
|
||||
Component buildBanKickMessage(BanRecord ban);
|
||||
|
||||
void save();
|
||||
|
||||
void reload();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue