Skip to content

Commit

Permalink
1.26.1.1 - Minor changes, remove debug and console spam
Browse files Browse the repository at this point in the history
  • Loading branch information
moom0o committed Jun 14, 2022
1 parent 04b969f commit 9412550
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ KickMessage: "&6You have lost connection to the server"
PreventSpamKick: false
Preventlinks: false # Code by John200410, edited by moomoo
Replace@: false

# If you want to hide yourself or someone else when logging into the game, just give these rights:
# anarchyexploitfixes.silentJoin
# anarchyexploitfixes.silentLeave
JoinLeaveMessages: false
ConnectionMsgsOnByDefault: true # /toggleconnectionmsgs
EnableFirstJoinMessage: false
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.moomoo</groupId>
<artifactId>anarchyexploitfixes</artifactId>
<version>1.26.1</version>
<version>1.26.1.1</version>
<packaging>jar</packaging>

<name>AnarchyExploitFixes</name>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/me/moomoo/anarchyexploitfixes/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ public void revert(ItemStack item) {
if (getConfig().getStringList("BANNED_NAMES").contains(item.getI18NDisplayName()))
item.subtract(item.getAmount());
if (getConfig().getBoolean("DataValues.RevertSpecificDataValues")) {
getLogger().info(item.getType().name() + item.getType().getMaxDurability());
if (getConfig().getStringList("DataValues.SpecificDataValues").contains(item.getData().toString())) {
item.subtract(item.getAmount());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
return true;
}
} else if (command.getName().equalsIgnoreCase("aef")) {
if (args[0].toLowerCase().startsWith("ver")) {
if (args.length <= 0 || args[0].toLowerCase().startsWith("ver")) {
sender.sendMessage(ChatColor.GOLD + "This server is running AnarchyExploitFixes v" + plugin.getDescription().getVersion());
return true;
}
Expand Down Expand Up @@ -153,7 +153,8 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
}
}
}
return false;
sender.sendMessage(ChatColor.WHITE + "Unknown command. Type \"/help\" for help.");
return true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class CoordExploits implements Listener {
@EventHandler
public void onTeleport(PlayerTeleportEvent evt) {
if (plugin.getConfig().getBoolean("PreventTeleportCoordExploit")) {
if (evt.getCause().equals(PlayerTeleportEvent.TeleportCause.PLUGIN) || evt.getCause().equals(PlayerTeleportEvent.TeleportCause.COMMAND)) {
if (evt.getCause().equals(PlayerTeleportEvent.TeleportCause.PLUGIN) || evt.getCause().equals(PlayerTeleportEvent.TeleportCause.COMMAND) || evt.getCause().equals(PlayerTeleportEvent.TeleportCause.ENDER_PEARL)) {
Point p1 = new Point(evt.getFrom().getBlockX(), evt.getFrom().getBlockZ());
Point p2 = new Point(evt.getTo().getBlockX(), evt.getTo().getBlockZ());
if (p1.distance(p2) > plugin.getConfig().getInt("MinDistanceToVanishPlayer")) {
Expand Down

0 comments on commit 9412550

Please sign in to comment.