Skip to content

ModCheckerPlugin#10

Closed
Slippers32 wants to merge 3 commits into
JouTak:masterfrom
Slippers32:master
Closed

ModCheckerPlugin#10
Slippers32 wants to merge 3 commits into
JouTak:masterfrom
Slippers32:master

Conversation

@Slippers32

Copy link
Copy Markdown

Это серверная часть проверки клиента на запрещеные моды

@ArtemBalakin ArtemBalakin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мелкие баги пофикси, крупные можешь просто объяснить, как бы поправил. ( если считаешь, что что-то не багуля- смело говори)

Comment thread src/main/java/ru/joutak/plugin/logic/Validator.java
String action = plugin.getConfig().getString(configPath, "LOG").toUpperCase();

Bukkit.getScheduler().runTask(plugin, () -> {
switch (action) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а прикинь действий будет не 3, а хотя бы 10, получится очень веселый свитч, правда? Как думаешь как можно пофиксить


public PluginMessageHandler(ModCheckerPlugin plugin) {
this.plugin = plugin;
this.validator = new Validator(plugin);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А если тебе валидатор понадобится с другой логикой тут? Видишь проблему ?

Comment thread src/main/java/ru/joutak/plugin/network/PluginMessageHandler.java
<option name="env">
<map>
<entry key="TEST_PLUGIN_BUILD" value="1" />
<entry key="SERVER_PATH" value="C:\DEV\TestServer" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а зачем этот файлик тут


public class JoinListener implements Listener {
private final ModCheckerPlugin plugin;
public static final Set<UUID> VERIFIED = new HashSet<>();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Для таких штук лучше делать что-то тип репозитория(который CRUD) , а то в одном месте сделаешь очистку и будешь весело искать

@Slippers32 Slippers32 closed this by deleting the head repository Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Тестовое задание: сервер-часть сервиса для проверки модов игрока

2 participants