From 3e288235957af7e47e528ad0f7f6d58f492e072d Mon Sep 17 00:00:00 2001 From: "Tomachi [ICHIGO]" Date: Sat, 22 Jan 2022 17:53:19 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=9D=E8=AD=B7=E3=83=AF=E3=83=BC?= =?UTF-8?q?=E3=83=AB=E3=83=89=E3=81=ABJao=5FAfa=5F3=E3=81=AA=E3=81=A9?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mymaid4/event/Event_PlayerCheckPreLogin.java | 6 +++--- .../mymaid4/event/Event_ProtectionOldWorlds.java | 10 +++++++--- src/main/java/com/jaoafa/mymaid4/event/Event_Vote.java | 4 ++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/jaoafa/mymaid4/event/Event_PlayerCheckPreLogin.java b/src/main/java/com/jaoafa/mymaid4/event/Event_PlayerCheckPreLogin.java index caf2199b0..f714a8dad 100644 --- a/src/main/java/com/jaoafa/mymaid4/event/Event_PlayerCheckPreLogin.java +++ b/src/main/java/com/jaoafa/mymaid4/event/Event_PlayerCheckPreLogin.java @@ -1,7 +1,7 @@ /* * jaoLicense * - * Copyright (c) 2021 jao Minecraft Server + * Copyright (c) 2022 jao Minecraft Server * * The following license applies to this project: jaoLicense * @@ -176,7 +176,7 @@ private static void disallow(AsyncPlayerPreLoginEvent event, Component message, event.disallow(Result.KICK_FULL, component); if (MyMaidData.getJaotanChannel() == null) return; MyMaidData.getJaotanChannel().sendMessage( - "[MyMaid3-PreLoginCheck] " + event.getName() + " -> `" + reason + "`").queue(); + "[MyMaid4-PreLoginCheck] " + event.getName() + " -> `" + reason + "`").queue(); } private static void disallow(AsyncPlayerPreLoginEvent event, Component message, String reason, String data) { @@ -190,6 +190,6 @@ private static void disallow(AsyncPlayerPreLoginEvent event, Component message, event.disallow(Result.KICK_FULL, component); if (MyMaidData.getJaotanChannel() == null) return; MyMaidData.getJaotanChannel().sendMessage( - "[MyMaid3-PreLoginCheck] " + event.getName() + " -> `" + reason + " (" + data + ")`").queue(); + "[MyMaid4-PreLoginCheck] " + event.getName() + " -> `" + reason + " (" + data + ")`").queue(); } } diff --git a/src/main/java/com/jaoafa/mymaid4/event/Event_ProtectionOldWorlds.java b/src/main/java/com/jaoafa/mymaid4/event/Event_ProtectionOldWorlds.java index abd9299d9..ccef4ce3c 100644 --- a/src/main/java/com/jaoafa/mymaid4/event/Event_ProtectionOldWorlds.java +++ b/src/main/java/com/jaoafa/mymaid4/event/Event_ProtectionOldWorlds.java @@ -1,7 +1,7 @@ /* * jaoLicense * - * Copyright (c) 2021 jao Minecraft Server + * Copyright (c) 2022 jao Minecraft Server * * The following license applies to this project: jaoLicense * @@ -37,13 +37,17 @@ public class Event_ProtectionOldWorlds extends MyMaidLibrary implements Listener "kassi-hp-tk", "Jao_Afa_1", "Jao_Afa_2", + "Jao_Afa_3", + "Jao_Afa_nether_1", + "Jao_Afa_nether_2", "SandBox_1", "SandBox_2", "SandBox_3", "ReJao_Afa", "Summer2017", "Summer2018", - "Summer2020" + "Summer2020", + "jaoTest1.18.1" }; final Material[] ignoreClickCancel = new Material[]{}; final Material[] ignoreTargetClickCancel = new Material[]{ @@ -238,7 +242,7 @@ public void onPlayerInteractEvent(PlayerInteractEvent event) { player.sendMessage(Component.text().append( Component.text("[OldWorldProtection-DEBUG]"), Component.space(), - Component.text(String.format("MyMaid3 Version: %s", Main.getMain().getDescription().getVersion()), NamedTextColor.GREEN) + Component.text(String.format("MyMaid4 Version: %s", Main.getMain().getDescription().getVersion()), NamedTextColor.GREEN) )); if (isA(player)) { diff --git a/src/main/java/com/jaoafa/mymaid4/event/Event_Vote.java b/src/main/java/com/jaoafa/mymaid4/event/Event_Vote.java index 7a338f1ec..c8c149786 100644 --- a/src/main/java/com/jaoafa/mymaid4/event/Event_Vote.java +++ b/src/main/java/com/jaoafa/mymaid4/event/Event_Vote.java @@ -1,7 +1,7 @@ /* * jaoLicense * - * Copyright (c) 2021 jao Minecraft Server + * Copyright (c) 2022 jao Minecraft Server * * The following license applies to this project: jaoLicense * @@ -118,7 +118,7 @@ public void onVotifierEvent(VotifierEvent event) { Vote vote = event.getVote(); String name = vote.getUsername(); String service = vote.getServiceName(); - System.out.println("onVotifierEvent[MyMaid3]: " + vote.getUsername() + " " + vote.getAddress() + " " + System.out.println("onVotifierEvent[MyMaid4]: " + vote.getUsername() + " " + vote.getAddress() + " " + vote.getServiceName() + " " + vote.getTimeStamp()); new BukkitRunnable() { public void run() {