/void manage bring command
This commit is contained in:
		| @ -76,6 +76,14 @@ public class VoidCommands implements CommandExecutor, TabCompleter{ | ||||
| 							sender.sendMessage("You can't teleport!"); | ||||
| 						} | ||||
| 						break; | ||||
| 					case "bring": | ||||
| 						if(sender instanceof Player ply && m.getLocation() != null){ | ||||
| 							m.teleport(ply.getLocation()); | ||||
| 						}else{ | ||||
| 							return false; | ||||
| 						} | ||||
| 						break; | ||||
|  | ||||
| 					case "balance": | ||||
| 						if(args.length < 5) return false; | ||||
| 						switch (args[2]) { | ||||
|  | ||||
| @ -178,4 +178,8 @@ public class Merchand implements Listener{ | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
|     public void teleport(Location location) { | ||||
| 		m.teleport(location); | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user