Browse Source

*fixed ATM

linus 8 năm trước cách đây
mục cha
commit
f64ced156b

+ 2 - 1
TimeIsMoney2/src/de/Linus122/TimeIsMoney/Main.java

@@ -46,7 +46,8 @@ public class Main extends JavaPlugin{
 	ConsoleCommandSender clogger = this.getServer().getConsoleSender();
 	
 	public static int cfg_version = 12;
-	public static int pl_version = 1924;
+	public static int pl_version = 1925;
+	//1925 19.05.16
 	int currentDay = 0;
 	
 	public static YamlConfiguration finalconfig;

+ 1 - 2
TimeIsMoney2/src/modules/atm/ATM.java

@@ -229,12 +229,11 @@ public class ATM implements Listener {
 			e.setResult(Result.DENY);
 		}
 	}
-	@SuppressWarnings("deprecation")
 	@EventHandler
 	public void onSign(final SignChangeEvent e){
 		final Block b = e.getBlock();
 		if(b.getType() == Material.WALL_SIGN || b.getType() == Material.SIGN || b.getType() == Material.SIGN_POST){
-			pl.getServer().getScheduler().scheduleAsyncDelayedTask(pl, new Runnable(){
+			pl.getServer().getScheduler().scheduleSyncDelayedTask(pl, new Runnable(){
 				public void run(){
 					if(b.getType() == Material.WALL_SIGN || b.getType() == Material.SIGN || b.getType() == Material.SIGN_POST){
 						Sign sign = (Sign) e.getBlock().getState();