mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Fixed some errors with /tpback
This commit is contained in:
		@@ -1267,7 +1267,7 @@ private static HashMap<String, Player> hidden = new HashMap<String, Player>();
 | 
				
			|||||||
		//If the target exists, teleport them to the user
 | 
							//If the target exists, teleport them to the user
 | 
				
			||||||
		else {
 | 
							else {
 | 
				
			||||||
			log.log(Level.INFO, player.getName() + " teleported "
 | 
								log.log(Level.INFO, player.getName() + " teleported "
 | 
				
			||||||
					+ player.getName() + " to their self.");
 | 
										+ playerTarget.getName() + " to their self.");
 | 
				
			||||||
			playerTarget.teleportTo(player);
 | 
								playerTarget.teleportTo(player);
 | 
				
			||||||
                        double x = player.getLocation().x;
 | 
					                        double x = player.getLocation().x;
 | 
				
			||||||
                        double y = player.getLocation().y;
 | 
					                        double y = player.getLocation().y;
 | 
				
			||||||
@@ -1279,8 +1279,8 @@ private static HashMap<String, Player> hidden = new HashMap<String, Player>();
 | 
				
			|||||||
                        vMinecraftUsers.getProfile(playerTarget).setTpback(xyz);
 | 
					                        vMinecraftUsers.getProfile(playerTarget).setTpback(xyz);
 | 
				
			||||||
                        if(playerTarget.canUseCommand("/tpback"))
 | 
					                        if(playerTarget.canUseCommand("/tpback"))
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
                        player.sendMessage(Colors.DarkPurple + "Your previous location has been stored");
 | 
					                        playerTarget.sendMessage(Colors.DarkPurple + "Your previous location has been stored");
 | 
				
			||||||
                        player.sendMessage(Colors.DarkPurple + "Use /tpback to return");
 | 
					                        playerTarget.sendMessage(Colors.DarkPurple + "Use /tpback to return");
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		return EXIT_SUCCESS;
 | 
							return EXIT_SUCCESS;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user