2 Commits afe005c40d ... 46d74a2e71

Tác giả SHA1 Thông báo Ngày
  mastercake10 46d74a2e71 update minor version 10 tháng trước cách đây
  mastercake10 ffad1d58c1 cancel PlayerInteractEvent to prevent editing signs on mc 1.20 10 tháng trước cách đây
4 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 2 2
      Plugin/pom.xml
  2. 2 1
      Plugin/src/main/java/de/Linus122/TimeIsMoney/ATM.java
  3. 1 1
      Tools/pom.xml
  4. 1 1
      pom.xml

+ 2 - 2
Plugin/pom.xml

@@ -7,7 +7,7 @@
 	<parent>
 		<groupId>de.Linus122.TimeIsMoney</groupId>
 		<artifactId>parent</artifactId>
-		<version>1.9.7</version>
+		<version>1.9.8</version>
 		<relativePath>../pom.xml</relativePath>
 	</parent>
 
@@ -111,7 +111,7 @@
 		<dependency>
 			<groupId>de.Linus122.TimeIsMoney</groupId>
 			<artifactId>Tools</artifactId>
-			<version>1.9.7</version>
+			<version>1.9.8</version>
 		</dependency>
         <dependency>
             <groupId>org.jetbrains</groupId>

+ 2 - 1
Plugin/src/main/java/de/Linus122/TimeIsMoney/ATM.java

@@ -321,12 +321,13 @@ public class ATM implements Listener, CommandExecutor {
 		return prefix + "_TimBANK";
 	}
 	
-	@EventHandler(priority = EventPriority.HIGHEST)
+	@EventHandler(priority = EventPriority.NORMAL)
 	public void onInteract(PlayerInteractEvent e) {
 		if (e.getClickedBlock() != null) {
 			if (e.getClickedBlock().getState() instanceof Sign) {
 				Sign sign = (Sign) e.getClickedBlock().getState();
 				if (sign.getLine(0).equalsIgnoreCase(CC(Main.finalconfig.getString("atm_sign_label")))) {
+					e.setCancelled(true);
 					if (!e.getPlayer().hasPermission("tim.atm.use")) {
 						e.getPlayer().sendMessage(CC(Main.finalconfig.getString("message_atm_noperms")));
 					} else {

+ 1 - 1
Tools/pom.xml

@@ -7,7 +7,7 @@
     <parent>
         <groupId>de.Linus122.TimeIsMoney</groupId>
         <artifactId>parent</artifactId>
-        <version>1.9.7</version>
+        <version>1.9.8</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
 

+ 1 - 1
pom.xml

@@ -6,7 +6,7 @@
 
     <groupId>de.Linus122.TimeIsMoney</groupId>
     <artifactId>parent</artifactId>
-    <version>1.9.7</version>
+    <version>1.9.8</version>
     <name>TimeIsMoney</name>
     <url>https://www.spigotmc.org/resources/time-is-money.12409/</url>
     <packaging>pom</packaging>