Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #648 from book000/feat/add-protect-old-worlds
Browse files Browse the repository at this point in the history
feat: 保護ワールドにJao_Afa_3などを追加
  • Loading branch information
book000 authored Jan 22, 2022
2 parents 4ef6bc9 + 3e28823 commit f1de303
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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
*
Expand Down Expand Up @@ -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) {
Expand All @@ -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();
}
}
Original file line number Diff line number Diff line change
@@ -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
*
Expand Down Expand Up @@ -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[]{
Expand Down Expand Up @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/jaoafa/mymaid4/event/Event_Vote.java
Original file line number Diff line number Diff line change
@@ -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
*
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit f1de303

Please sign in to comment.